Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-11864

selectOneMenu with converter inside collapsiblePanel does not show correct value when switchType is ajax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.1.0.Final
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Linux, 7.0.2.Final, Seam 3.1.Final (faces, solder and persistence)

      Description

      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.

      <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>
         .
         .
         .
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fastroller Andrew Wheeler
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: