I have a RichFaces pickList from which the user should be able to select multiple items and it should be directly reflected on the backing bean. Right now I have no way to reload selection in case of a validation error or in case the page is reloaded. Is there a simple way to tell RichFaces that I want the backing list to be updated on every change?
Share
You can attach to
onlistchangeevent.Using
a4j:support:Or, in newer versions, using
a4j:ajax:Or using
a4j:jsFunction:Both approaches in the form above will submit the form causing submitting selected values. You can also specify additional attributes for
a4j:support/a4j:jsFunctionif needed (for exampleajaxSingle="true"fora4j:supportto process only pickList component (other inputs will not be validated/updated),action/actionListenerto execute server side logic when list is changed,reRender, etc.).