1 Reply Latest reply on Sep 5, 2008 3:15 AM by Daniel Soneira

    dynamic appearing data tables

    Sascha Janz Master

      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 Novice

          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}">

          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.