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

Pavol Pitonak (JIRA) issues at jboss.org
Tue Jul 8 04:26:25 EDT 2014


    [ https://issues.jboss.org/browse/RF-11782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982899#comment-12982899 ] 

Pavol Pitonak commented on RF-11782:
------------------------------------

No, it still doesn't work in 4.5.0-SNAPSHOT.

> [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) 
>          Components: component-panels-layout-themes
>    Affects Versions: 4.1.0.CR1
>         Environment: mojarra-2.1.4, RF-CR1
>            Reporter: Rene O
>            Assignee: Brian Leathem
>              Labels: lazy-loaded
>             Fix For: 5-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 was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the richfaces-issues mailing list