JBossWiki : RichFacesSuggestionGettingAdditionalProperties
Wiki Home: RichFacesSuggestionGettingAdditionalProperties [EN]
[Permalink]
[Recent Changes]
[History]
[RSS Feed][RDF Feed][Atom Feed][Print]

<rich:suggestionbox width="200" height="200" for="test" suggestionAction="#{bean.autocomplete}" var="cap">

<h:column>

<h:outputText value="#{cap.text}"/>

</h:column>

<a4j:support event="onselect" action="#{bean.action}">

<f:setPropertyActionListener value="#{cap.label}" target="#{bean.property1}" />

</a4j:support>

</rich:suggestionbox>

In the example "onselect" event is used for sending selected value to the server. It's also possible to pass additional fields of selected object (which don't belong to "fetchvalue" attribute)


Other languages:

Log in to make links between pages

The page last changed on Fri Nov 23 06:30:29 EST 2007 by ilya_shaikovsky