1 Reply Latest reply on Aug 22, 2013 7:10 PM by bleathem

    TabPanel Problem - second tab selected,  no actions performed after Upgrade to 4.3

    debowsley

      I have a JBOSS-Seam environment that uses Richfaces 4.3.3 and JSF 2.0.   Since  Upgrading from the 3 series my TabPanels contents seem to no longer work.  As well as the auto filtering for the extendedDataTable(ripped out for this)

       

      The first tab that is clicked on, regardless of which one, its contects are displayed and work fine.  But every subsequent tab selection displays it's content, but it appears no Actions are fired.  No sorting, pagination, or even tabing back to another tab.

       

      Weeks have been spend trying to determine what has changed betwen the versions to cause this to stop working.....  I can't figure it out.  Any help would be greatly appreciated.

       

      My main page is this:

      <code>

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"

                      xmlns:s="http://jboss.org/schema/seam/taglib"

                      xmlns:ui="http://java.sun.com/jsf/facelets"

                      xmlns:f="http://java.sun.com/jsf/core"

                      xmlns:h="http://java.sun.com/jsf/html"

                      xmlns:a4j="http://richfaces.org/a4j"

                      xmlns:rich="http://richfaces.org/rich"

                      template="/statustabs.xhtml">

       

          <p>DEBBIE IS TESTING</p>

       

         <ui:define name="statusBody">

         <h:form id="deb">

             <rich:tabPanel switchType = "ajax">

              <rich:tab id = "a" name="deb1" header = "Aircraft">

                 <ui:include src="aircraftTable.xhtml" />

              </rich:tab>

              <rich:tab id = "b" name="deb2" header = "Base">

                <ui:include src="baseTable.xhtml" />

              </rich:tab>

              <rich:tab id = "c" name="deb3" header = "Equipment">

               <ui:include src="equipmentTable.xhtml" />

              </rich:tab>      

             </rich:tabPanel>

         </h:form>   

         </ui:define>

      </ui:composition>

      </code>

       

       

      EquipmentTable.xhtml

      <code>

       

       

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"

                      xmlns:s="http://jboss.org/schema/seam/taglib"

                      xmlns:ui="http://java.sun.com/jsf/facelets"

                      xmlns:f="http://java.sun.com/jsf/core"

                      xmlns:h="http://java.sun.com/jsf/html"

                      xmlns:a4j="http://richfaces.org/a4j"

                      xmlns:rich="http://richfaces.org/rich">

       

       

         <a4j:region id="equipmentRegion">

             <a4j:region id="equipmentScrollerTopRegion" status="equipmentWaitStatus">

               <rich:dataScroller id="equipmentTopScroller" align="left" for="equipmentTable" maxPages="10"/>

            </a4j:region>

       

            <rich:extendedDataTable id="equipmentTable" var="equipment" value="#{equipmentList.resultList}" rowKeyVar="rowix"

                                    rendered="#{not empty equipmentList.resultList}" render="equipmentTopScroller, equipmentBottomScroller"

                                    frozenColumns="1" first="0" rows="25" border="1" width="400px" height="300px" styleClass="scrolls"

                                    sortMode="single" selectionMode="single"

                                    onRowMouseOver="this.style.backgroundColor='#E6E8FA'" onRowMouseOut="this.style.backgroundColor='#FFFFFF'">

       

               <rich:column id="equipmentIDCol" label="Equipment ID"

                            sortBy="#{equipment.equipmentID}">

                  <f:facet name="header">

                     <h:panelGroup>

                        <h:outputText id="equipmentIDHdr" value="Equipment ID"/>

                     </h:panelGroup> 

                  </f:facet>

                  <h:outputText id="equipmentID" value="#{equipment.equipmentID}"/>

               </rich:column>

       

       

               <rich:column id="equipmentNumberCol" label="Registration #"

                            sortBy="#{equipment.registrationNumber}">

                  <f:facet name="header">

                     <h:panelGroup>

                        <h:outputText id="equipmentNumberHdr" value="Registration #"/>

                     </h:panelGroup> 

                  </f:facet>

                  <rich:inplaceInput id="registrationNumber"

                                     value="#{equipment.registrationNumber}"

                                     changedClass="inplace"

                                     editEvent="dblclick"

                                     maxlength="10"

                                     rendered="#{s:hasRole('srcontroller')}">

                     <a4j:ajax event="change" listener="#{equipmentHome.update('setRegistrationNumber', equipment, equipment.registrationNumber)}" render="equipmentTable" execute="@this"/>

                  </rich:inplaceInput>

                  <h:outputText id="registrationNumberReadOnly" value="#{equipment.registrationNumber}"/>

               </rich:column>

       

       

               <rich:column id="equipmentTypeCol" label="Equipment Type"

                            sortBy="#{equipment.equipmentType}">  

                  <f:facet name="header">

                     <h:panelGroup>

                        <h:outputText id="equipmentTypeHdr" value="Equipment Type"/>

                     </h:panelGroup>

                  </f:facet>

                  <h:outputText id="equipmentTypeReadOnly" value="#{equipment.equipmentType}" />

               </rich:column>

       

               <f:facet id="equipmentTableFooter" name="footer"></f:facet>

            </rich:extendedDataTable>

       

            <a4j:region id="equipmentScrollerBottomRegion" status="equipmentWaitStatus">

               <rich:dataScroller id="equipmentBottomScroller" align="left" for="equipmentTable" maxPages="10" />

            </a4j:region>

       

      </code>