0 Replies Latest reply on Sep 2, 2012 10:19 PM by LOH K. H.

    Why render attribute not working after commandButton is clicked?

    LOH K. H. Newbie

      There is a text field, a data table, and a button in a form. Imaging I enter some string in text field, click on the button, a list of data will output into data table. Anyhow, I am not able to render the table the output, but I have check the backing bean did return the result list.

       

      May I know how could I render the table after clicking on the button?

       

      Here is the code:

      < h:form > 
        < table border="0" cellpadding="5" bgcolor="#FFFFFF" > 
          < tr > 
            < td > 
              < h:outputLabel value="#{msg.Label_FieldA}"/ > 
            < /td > 
            < td > < /td > 
            < td > 
              < h:inputText value="#{theVo.FieldA}"/ > 
            < /td > 
            < td > < /td > 
            < td > 
              < a4j:commandButton action="#{theBean.doSearch}" value="#{msg.Label_Search}" execute="@form" render="tablePanel" id="Search"/ > 
            < /td > 
          < /tr > 
          < tr > 
            < td > 
              < h:panelGroup id="tablePanel" > 
                < rich:dataTable var="theResult" value="#{theVo.resultList}" > 
                   ...
                < /rich:dataTable > 
              < /h:panelGroup > 
            < /td > 
          < /tr > 
        < /table > 
      < /h:form >
      

       

      THanks @!