1 Reply Latest reply on Sep 17, 2011 2:50 AM by bouz78

    rich:tab issues

    bouz78

      Hello everyone!

      here's my problem. I have 3 rich:tab in a rich:tabPanel so the first one render the data but as soon i click to the others tabs i lost the rendering data for the first one and also the tabs which I click does not contains any data or info.

      Here's the sample of the rich:panel

      <ui:define name="content">

              <h:form>

                  <rich:tabPanel  switchtype="ajax" rendered="true">

       

                      <rich:tab id="orderCarTab" header="car"

                          action="/view/order/OrderCar?faces-redirect=true">

                          <ui:insert name="orderCar" />

                      </rich:tab>

                      <rich:tab id="orderBicycleTab" header="bicycle"

                          action="/view/order/OrderBicycle?faces-redirect=true">

                          <ui:insert name="orderBicycle" />

                      </rich:tab>               

                      <rich:tab id="orderRollersTab" header="rollers"

                          action="/view/order/OrderRollers?faces-redirect=true">

                          <ui:insert name="orderRollers" />

                      </rich:tab>

                  </rich:tabPanel> ...

      I use the navigation rules to specify task flow which allow me to access to the first tab.

      here's an sample

      <ui:define name="orderCar">

              <h:form id="orderCarId" styleClass="edit">

                  <h:panelGrid columns="1" columnClasses="gridContent" width="100%">

                      <h:panelGroup>

                          <ui:decorate id="carIDDecoration" template="/view/layout/edit.xhtml">

                              <ui:define name="label">Order Car: </ui:define>

                              <h:inputText id="OrdercarNumber" label="Order car ID"

                                  value="#{orderSearchList.currentOrder.carID}" readonly="true" styleClass="readOnly"

                                  size="20" maxlength="25" >

                              </h:inputText>

                          </ui:decorate>

       

      Could someone help ! for me to render data thru the others tabs and navigate between tabs without issue

       

      Best regards JAC

        • 1. Re: rich:tab issues
          bouz78

          Thanks guys !

          Alright I find out my mistake. So if you reslize on the code there's <ui:insert name="orderBicycle" /> and <ui:insert name="orderRollers" />

          Indeed I change the 2nd insert for an <ui:include> Now works perfectly

           

          Thanks everyone