0 Replies Latest reply on May 1, 2008 2:03 AM by williamvoor

    datascroller not working inside JSP included in tabPanel

    williamvoor

      Hello,

      I'm using RichFaces 3.2.0.SR1 along with MyFaces 1.2.2.
      I wrote an index.jsp page which contains a rich:tabTable with two tabs. Inside each tab I include a new jsp page.

      <f:view>
       <h:form>
       <rich:tabPanel switchType="server">
       <rich:tab id="tab1" label="Tab 1">
       <a4j:include viewId="page2.jsp"/>
       </rich:tab>
       <rich:tab id="tab2" label="Tab 2">
       <a4j:include viewId="page3.jsp"/>
       </rich:tab>
       </rich:tabPanel>
       </h:form>
      </f:view>
      


      On both page2.jsp and page3.jsp I have one datatable and an associated datascroller.

      <f:view>
      <h:form>
       <rich:dataTable width="483" id="t2" rows="10" columnClasses="tableText"
      
       value="#{serverTableBean.allServersInfo}" var="server">
      
       <f:facet name="header">
       <rich:columnGroup>
       <h:column>
       <h:outputText styleClass="headerText" value="#{prop.server_name}" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="#{prop.current_task}" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="#{prop.done_jobs}" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="#{prop.failed_jobs}" />
       </h:column>
       </rich:columnGroup>
       </f:facet>
      
       <h:column>
       <h:outputText value="#{server.serverName}" />
       </h:column>
       <h:column>
       <h:outputText value="#{server.taskName}" />
       </h:column>
       <h:column>
       <h:outputText value="#{server.doneJobs}" />
       </h:column>
       <h:column>
       <h:outputText value="#{server.failedJobs}" />
       </h:column>
       </rich:dataTable>
       <rich:datascroller align="left" for="t2"/>
       </h:form>
      </f:view>
      


      When I test page2.jsp and page3.jsp independently, the datascroller works as expected. BUT when a load index.jsp, the pages are included into the tabs but the datascroller doesn't work.

      Please advice me if more details about my web app are needed.

      Thank you,

      William.