4 Replies Latest reply on Aug 26, 2009 5:47 AM by ilya_shaikovsky

    How do a reset when switching between tabs in tabPanel

    daxxy

      I have a tab panel with 2 tabs: Basic Search and Advanced Search.

      The Basic search inputs are duplicated on the Advanced Search tab where additional inputs are added (see pseudo code, below). When the user clicks on the Advanced Search tab, I want anything that might have been input on the Basic search tab to be reset to null.

      Here is the code

      <rich:tabPanel headerClass="tabClass">
       <rich:tab label="Basic Search">
       <h:panelGrid columns="1">
      
       <item 1>
       <item 2>
       <item 3>
      
       </h:panelGrid>
       </rich:tab>
      
       <rich:tab label="Advanced Search">
       <h:panelGrid columns="1">
      
       <item 1>
       <item 2>
       <item 3>
       <item 4>
       <item 5>
       <item 6>
      
       </h:panelGrid>
       </rich:tab>
       </rich:tabPanel>


      TDR