[
https://issues.jboss.org/browse/RF-11782?page=com.atlassian.jira.plugin.s...
]
Pavol Pitonak commented on RF-11782:
------------------------------------
# deploy Metamer and open
http://localhost:8080/metamer/faces/components/richTabPanel/lazyLoading.x...
# check the list of JSF phases at the top of page - there is getTestListA, getTestListB -
none of these should be there
# switch to tab2 - getTestListA should be in list, nothing is there
# switch to tab3 - getTestListB should be in list, getTestListA is there
# switch to tab1 - nothing should be in list, getTestListA and getTestListB are there
[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)