5 Replies Latest reply on Mar 26, 2007 2:01 PM by Sergey Smirnov

    Datatable with rendered attribute, not rendered after ajax u

    Mikael Andersson Master

      I wonder if a non-rendered table can be put in a rendered state via an ajax submit?

      I have a table showing a list of items, and if that list is empty the table is not displayed. By invoking an addItem action, an item is added to the list but the table isn't rendered.


      <rich:dataTable id="myTable" value="#{bean.theList}" rendered="#{not empty bean.theList}" var="item">
      <a4j:commandButton action="#{bean.addItem}" value="Add" reRender="myTable"/>

      (just made up, so could contain errors :) )

      Not sure how the state of a non-rendered component is dealt with during the lifecycle.