2 Replies Latest reply on Jan 10, 2011 5:50 AM by newbeewan

    rendered / reRender problem

    newbeewan

      Hi,

       

      I'm trying to make a panel appears after changing the value of a combobox...

      Data is correctly loaded, but reRender doesn't seem to work !

       

      <a4j:form id="myForm">
               <h:panelGrid columns="2">
                  <rich:comboBox value="#{userSuggestionControler.currentValue}" selectFirstOnUpdate="false" suggestionValues="#{userSuggestionControler.suggestion}"/>
                  <a4j:commandButton value="Update Value" reRender="employeeData">
                     <f:setPropertyActionListener value="#{userSuggestionControler.currentValue}" target="#{userDataControler.currentPersonByFullName}"/>
                  </a4j:commandButton>
               </h:panelGrid>
               <rich:panel id="myData" rendered="#{!empty userDataControler.currentPerson}">
                  <f:facet name="header">
                     <h:outputText value="#{userDataControler.currentPerson.name}"/>
                  </f:facet>
                 ...
               </rich:panel>
      
            </a4j:form>
      

       

      The currentPersonByFulName is correctly updated and it perform a search to populate currentPerson, but the rendeded value doesn't seem to be refreshed !

       

      Is there something to do to make the panel appearing after clicking on the update button ?

       

      I'm using richfaces 3.3.3 on JSF 1.2.

       

      Regards