1 Reply Latest reply on Sep 5, 2008 3:15 AM by daniel.soneira

    dynamic appearing data tables

    ajanz

      i got a page with different datatables. dependig on serveral events like button click i want one datatable to disappear and one to appear. how can i do this without page reloading?

        • 1. Re: dynamic appearing data tables
          daniel.soneira

          either use some a4j:support (onclick) that trigger actions which in turn set some model attribute that is used to render the tables like so:

          <a4j:commandLink action="#{myController.changeAttribute1}" reRender="regionTable1"/>
          
          <a4j:outputPanel id="regionTable1" rendered="#{myModel.attribute1}">
           <rich:dataTable>
           ...
           </rich:dataTable>
          </a4j:outputPanel>
          


          or use jQuery - that would not require an AJAX request, but on reload of the page the tables' visible state would be lost/reset without further actions.