[
https://issues.jboss.org/browse/RF-11782?page=com.atlassian.jira.plugin.s...
]
Rene O updated RF-11782:
------------------------
Description:
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}
was:
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}
[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
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