[ 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.5-Tracking (was: 5-Tracking) > [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: 4.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) _______________________________________________ richfaces-issues mailing list richfaces-issues@lists.jboss.org https://lists.jboss.org/mailman/listinfo/richfaces-issues