2 Replies Latest reply on Aug 25, 2011 5:14 AM by anykeystudio

    TabPanel bug ?

    anykeystudio

      Trying to understand how the rich:tabpanel works. I made a really simple web-app to test how it works (there is no other code in the project). The only way I can make the tap-panel to render properly is to redirect the request to the second page. Please look at the image in the end to see how it renders when doing a forward.

      ?faces-redirect=true

       

      Is this a bug or have I missunderstood something how to user the tab-panel (without redirect) ?

       

      use Glassfish 3.1.1 (build 12), Richfaces 4.0 final.

      Greetings Chris.

       

      Index.xhtml

      <h:body>
         
      <rich:panel header="Welcome">
             
      <h:form>
             
      <a4j:commandLink action="/page1.xhtml" value="Go to Page1" />
             
      </h:form>
         
      </rich:panel>
      </h:body>

      page1.xhtml

      <h:body>
             
      <rich:panel header="Page 1">
                 
      <h:form>        
                     
      <a4j:commandLink action="/index" value="Home" />

                     
      <rich:tabPanel switchType="ajax">
                         
      <rich:tab header="Overview">
                              RichFaces is a component library for JSF and an advanced framework for
                              easily integrating AJAX capabilities into business applications.
                             
      <ul>
                                 
      <li>100+ AJAX enabled components in two libraries</li>
                                 
      <li>a4j: page centric AJAX controls</li>
                                 
      <li>rich: self contained, ...</li>                        
                             
      </ul>
                         
      </rich:tab>
                         
      <rich:tab header="JSF 2 and RichFaces 4">
                             
      <p>We are working hard on RichFaces 4.0 which will have full JSF
                                  2 integration. That is not all though, here is a summary of updates
                                  and features:
      </p>
                             
      <ul>
                                 
      <li>Redesigned modular repository and build system.</li>
                                 
      <li>Simplified Component Development Kit with annotations,
                                      faces-config ...
      </li>                           
                             
      </ul>
                         
      </rich:tab>
                     
      </rich:tabPanel>
                 
      </h:form>
             
      </rich:panel>
      </h:body>

      Mozilla Firefox.png