[richfaces-issues] [JBoss JIRA] Commented: (RF-8744) a4j:ajax doesn't work with selectManyCheckbox, selectManyMenu and selectManyListbox
Anton Belevich (JIRA)
jira-events at lists.jboss.org
Wed Jun 9 08:32:38 EDT 2010
[ https://jira.jboss.org/browse/RF-8744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12534721#action_12534721 ]
Anton Belevich commented on RF-8744:
------------------------------------
Not a behavior bug. line 602: "parameters[sourceId] = sourceId" in richfaces.js cause of this bug. UISelectOne or UISelectMany components use context.getExternalContext().getRequestParameterValuesMap() method to retrieve values from the request; So in component 'submittedValue' will be chosen values from SelectItem hidden inputs + component client id thus fails validation during validateValue method execution.
> a4j:ajax doesn't work with selectManyCheckbox, selectManyMenu and selectManyListbox
> -----------------------------------------------------------------------------------
>
> Key: RF-8744
> URL: https://jira.jboss.org/browse/RF-8744
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.0.0.Alpha2
> Environment: Tomcat 6.0.26, Glasfish 3, RichFaces 4.0.0-SNAPSHOT
> Reporter: Pavol Pitonak
> Assignee: Anton Belevich
> Priority: Critical
> Fix For: 4.0.0.Alpha2
>
> Attachments: selectMany.zip
>
>
> The following code doesn't work as expected (output is not updated). When a4j:ajax is changed to f:ajax, everything works. The same problem exist in selectManyMenu and selectManyListbox.
> <h:selectManyCheckbox id="selectManyMenu" value="#{richBean.cars}" >
> <f:selectItem itemValue="Audi" itemLabel="Audi"/>
> <f:selectItem itemValue="Mercedes" itemLabel="Mercedes"/>
> <f:selectItem itemValue="Ferrari" itemLabel="Ferrari"/>
> <f:selectItem itemValue="Lexus" itemLabel="Lexus"/>
> <f:selectItem itemValue="BMW" itemLabel="BMW"/>
> <a4j:ajax event="change" execute="@form" render="output"/>
> </h:selectManyCheckbox>
> <a4j:outputPanel id="output">Your selection: #{richBean.cars}</a4j:outputPanel>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list