3 Replies Latest reply on Nov 14, 2008 1:21 PM by nbelaevski

    switchType for rich:tab

      I have a rich:tabPanel containing two rich:tab within it. I want one rich:tab to be of client type and the other of type ajax.

      Following is the code:

      <rich:tabPanel >
       <rich:tab label="Browse" name="browserTab" switchType="client" >
       <a4j:include id="browse" viewId="/browse.xhtml"/>
       </rich:tab>
       <rich:tab label="Search" name="searchTab" switchType="ajax">
       <a4j:include id="search" viewId="/search.xhtml"/>
       </rich:tab>
      </rich:tabPanel>
      


      But I'm not able to click the Search tab. Can anyone help me?

        • 1. Re: switchType for rich:tab
          ilya_shaikovsky

          place rich:messages to your page.

          • 2. Re: switchType for rich:tab

            I'm sorry I didn't get the reason why we should use rich:messages in this case.

            I wanted the browse tab should be of switchType 'client' so that the contents in the browse tab should not be rendered each time the browse tab is clicked.

            Whereas for the search tab, I want to call a action inorder to reset the contents in the search tab each time a user clicks on the search tab, so I thought I could use switchType ajax

            When the page loaded Browse tab was displayed first and when I tried to click on the Search tab, the contents of search tab was not displayed, instead the browse tab and its content are still displayed

            • 3. Re: switchType for rich:tab
              nbelaevski

              Ilya meant to ask whether there are any generated faces messages, e.g. validation errors or so...