[richfaces-issues] [JBoss JIRA] (RF-11864) selectOneMenu with converter inside collapsiblePanel does not show correct value when switchType is ajax

Andrew Wheeler (Commented) (JIRA) jira-events at lists.jboss.org
Fri Jan 6 23:54:09 EST 2012


    [ https://issues.jboss.org/browse/RF-11864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654461#comment-12654461 ] 

Andrew Wheeler commented on RF-11864:
-------------------------------------

Sorry, but this appears to be my problem. I had a mis-match between the scope of the backing bean and the data used to produce the option lists. This caused the the two values to "not equal" even though they naturally are.
                
> selectOneMenu with converter inside collapsiblePanel does not show correct value when switchType is ajax
> --------------------------------------------------------------------------------------------------------
>
>                 Key: RF-11864
>                 URL: https://issues.jboss.org/browse/RF-11864
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.1.0.Final
>         Environment: Linux, 7.0.2.Final, Seam 3.1.Final (faces, solder and persistence)
>            Reporter: Andrew Wheeler
>              Labels: ajax, lazy-loaded
>
> If the panel contents contain a selectOneMenu with a custom converter and the switchType is "ajax" then the correct option is not shown. If the switchType is changed to "client" then the correct option is displayed. In both instances the converter function getAsString returns the correct value but it appears this is not used to mark the option as selected.
> {code:xml}
> <rich:collapsiblePanel id="addressPanel" header="Address" switchType="ajax" expanded="false">
>  <h:panelGroup id="addresses" layout="block">
>  <ui:repeat value="#{personHome.addressable.addresses}" var="address" id="addressRepeat">
>     <h:panelGroup id="addressBlock" layout="block">
>            <h:panelGroup styleClass="property" layout="block">
>               <h:outputLabel for="addressType" id="addressTypeLabel" value="Type:"/>
>           <h:selectOneMenu id="addressType" value="#{address.addressType}" hideNoSelectionOption="true" required="true" converter="identityConverter" label="Address type">
>              <f:selectItem itemValue="" itemLabel="Please select..." noSelectionValue="true"/>
>              <f:selectItems value="#{addressTypes}" var="t" itemLabel="#{t.description}"/>
>           </h:selectOneMenu>  
>             <h:message for="addressType" styleClass="property-error"/>
>        </h:panelGroup>
>    .
>    .
>    .
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list