0 Replies Latest reply on May 26, 2009 9:02 AM by Andreas Eigenmann

    a4j:support reRender and converter

    Andreas Eigenmann Newbie

      Hi,

      Does a reRender not recreate jsf converters?

      In the following example a first list box has a a4j:support tag which rerenders a second list box with the id "vertrag". During rerendering the generic converter "hasi:convertObject" inside the second list box isn't recreated and the
      expression in the collection parameter "#{uebersichtAction.userVertragList}" isn't new evaluated.

      ...
      <a4j:support event="onchange" action="#{uebersichtAction.setVertraegeZuMandant}" reRender="vertrag"/>
      ...
       <h:selectOneListbox id="vertrag" styleClass="xl" size="1" value="#{uebersichtAction.vertrag}" immediate="true">
       <hasi:convertObject collection="#{uebersichtAction.userVertragList}" identifier="id"/>
       <f:selectItem itemValue="#{null}" itemLabel="#{labels.sel_item_alle}" />
       <c:forEach var="vertrag" items="#{uebersichtAction.userVertragList}">
       <f:selectItem itemValue="#{vertrag}" itemLabel="#{vertrag.id}" />
       </c:forEach>
       </h:selectOneListbox>
      ...
      


      Hope somebody knows a solution for this problem ...

      Thanks,

      Andreas