[richfaces-issues] [JBoss JIRA] (RF-11782) [rich:tabPanel] switching tabs doesn't work correctly with switchtype="ajax"

Brian Leathem (Updated) (JIRA) jira-events at lists.jboss.org
Sat Dec 10 17:54:09 EST 2011


     [ https://issues.jboss.org/browse/RF-11782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated RF-11782:
-------------------------------

    Fix Version/s: 4.2.0.Tracking
           Labels: lazy-loaded  (was: )

    
> [rich:tabPanel] switching tabs doesn't work correctly with switchtype="ajax"
> ----------------------------------------------------------------------------
>
>                 Key: RF-11782
>                 URL: https://issues.jboss.org/browse/RF-11782
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.1.0.CR1
>         Environment: mojarra-2.1.4, RF-CR1
>            Reporter: Rene O
>            Assignee: Brian Leathem
>              Labels: lazy-loaded
>             Fix For: 4.2.0.Tracking
>
>         Attachments: jsf2testcase.war
>
>
> A testcase to reproduce this issue is attached:
> http://localhost:8080/jsf2testcase/tabswitchtest.jsf
> Steps to reproduce the issue:
> 1. switch to 'Tab 3' -> console/server-log shows 'getTestListA' and 'getTestListB' -> this is a bug, expected is only 'getTestListB', because tab3 has only one table with testListB
> 2. switch to 'Tab 1' -> console/server-log shows 'getTestListB' -> this is a bug, expected is nothing new in console/server-log, because tab1 has no table
> {code:title=xhtml}
> ...
> <h:form id="testform">
>     <rich:tabPanel id="tabpanel" switchType="ajax" activeItem="#{dataBean.activeTab}">
>        	<rich:tab id="tab1" header="Tab 1">
>        		Here is tab #1
>     	</rich:tab>
>        	<rich:tab id="tab2" header="Tab 2">
>     	    <rich:dataTable value="#{dataBean.testListA}" var="item" rows="10">
>             	<rich:column >
>             		<f:facet name="header">
>             			List A
>             		</f:facet>
>             		<h:outputText value="#{item.a}"/>
>             	</rich:column>
>            </rich:dataTable>
>         </rich:tab>
>         <rich:tab id="tab3" header="Tab 3">
>             <rich:dataTable value="#{dataBean.testListB}" var="item" rows="10"> 
>             	<rich:column >
>             		<f:facet name="header">
>             			List B
>             		</f:facet>
>             		<h:outputText value="#{item.a}"/>
>             	</rich:column>
>             </rich:dataTable>
>         </rich:tab>            	
>    </rich:tabPanel>        	
> </h:form>
> ...
> {code}
> {code:title=java}
> ...
> public List<TestObject> getTestListA() {
>   System.out.println("getTestListA");
>   return testListA;
> }
> ...
> public List<TestObject> getTestListB() {
>   System.out.println("getTestListB");
>   return testListB;
> }
> ...
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list