1 Reply Latest reply on Jul 18, 2008 10:43 AM by mail.micke

    Problem with rich:tabPanel

    joodie

      I have a little problem:
      When i use following code:

      <h:inputText id="firstname2" value=".." " required="true"/>
      
      <rich:tabPanel switchType="ajax">
       <rich:tab label="First">
       Here is tab #1
       </rich:tab>
       <rich:tab label="Second">
       Here is tab #2
       </rich:tab>
      
      </rich:tabPanel>
      


      the swith from tab1 to tab2 isn't possible.
      If I use the same code without required="true" the switch is possible!

        • 1. Re: Problem with rich:tabPanel
          mail.micke

          That is because the default switchType is server, which will post the form back to the server. This causes a validation error.

          Try setting switchType="client", or adding a rich:messages component to the page so you can see the validation errors.

          -micke