1 Reply Latest reply on Jan 6, 2012 8:51 PM by Andrew Wheeler

    Converter inside ajax rendered collapsiblePanel

    Andrew Wheeler Newbie

      I am using RichFaces 4.1.0.Final and I'm having a problem with ajax rendering of a collapsible panel. If the panel contents contain a selectOneMenu with a custom converter and the switchType is ajax then the noSelectionValue is displayed. If the switchType is changed to client then the correct option is displayed. The problem is not with the converter as it works everywhere else.



      <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:message for="addressType" styleClass="property-error"/>




      I am also using CDI and Seam 3.1 on JBoss AS 7. I have tested this behaviour on Firefox and Chromium - I only run Linux so haven't tested on IE.