[richfaces-issues] [JBoss JIRA] (RF-12025) [rich:tabPanel] Switching tabs doesn't work correctly
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Tue Mar 6 21:04:37 EST 2012
[ https://issues.jboss.org/browse/RF-12025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-12025:
-------------------------------
Description:
Every tab switching caused more (perhaps 2 times more) calling of logger.debug("----preRenderHomeView");
{code:title=XHTML FILE CODE EXTRACT}
<ui:define name="metadata">
<f:metadata>
<f:event type="preRenderView" listener="#{homeAction.preRenderHomeView}"/>
</f:metadata>
</ui:define>
<rich:tabPanel id="homeUserTabs" switchType="ajax" activeItem="#{homeAction.selectedUserHomeTab}" itemChangeListener="#{homeAction.selectedUserHomeTabChanged}" immediate="true">
<rich:tab header="#{bundles.messages.tab_userMyDataTab}" id="UserDataTab" render="ajaxFlowPanel">
<ui:include src="/WEB-INF/content-pages/userAccount/userAccountDataTab.xhtml"/>
</rich:tab>
<rich:tab header="#{bundles.messages.tab_userEmailTab}" id="UserEmailTab" render="ajaxFlowPanel">
<ui:include src="/WEB-INF/content-pages/userAccount/userEmailDataTab.xhtml"/>
</rich:tab>
</rich:tabPanel>
{code}
{code:title="HomeAction"}
public void preRenderHomeView() {
logger.debug("----preRenderHomeView");
}
{code}
was:
STEPS TO REPRODUCE A PROBLEM:
1. Switch tab: UserDataTab -> UserEmailTab (look on JBoss console)
2. Switch tab: UserEmailTab -> UserDataTab (look on JBoss console)
3. Switch tab: UserDataTab -> UserEmailTab (look on JBoss console)
4. Switch tab: UserEmailTab -> UserDataTab (look on JBoss console)
5. Switch tab: UserDataTab -> UserEmailTab (look on JBoss console)
6. Switch tab: UserEmailTab -> UserDataTab (look on JBoss console)
...
Every tab switching caused more (perhaps 2 times more) calling of logger.debug("----preRenderHomeView");
==============================================================================================================================
------------------------- XHTML FILE CODE EXTRACT: ---------------------------------------------------------------------------
<ui:define name="metadata">
<f:metadata>
<f:event type="preRenderView" listener="#{homeAction.preRenderHomeView}"/>
</f:metadata>
</ui:define>
<rich:tabPanel id="homeUserTabs" switchType="ajax" activeItem="#{homeAction.selectedUserHomeTab}" itemChangeListener="#{homeAction.selectedUserHomeTabChanged}" immediate="true">
<rich:tab header="#{bundles.messages.tab_userMyDataTab}" id="UserDataTab" render="ajaxFlowPanel">
<ui:include src="/WEB-INF/content-pages/userAccount/userAccountDataTab.xhtml"/>
</rich:tab>
<rich:tab header="#{bundles.messages.tab_userEmailTab}" id="UserEmailTab" render="ajaxFlowPanel">
<ui:include src="/WEB-INF/content-pages/userAccount/userEmailDataTab.xhtml"/>
</rich:tab>
</rich:tabPanel>
--------------------------------------------------------------------------------------------------------
HomeAction:
public void preRenderHomeView()
{
logger.debug("----preRenderHomeView");
}
Steps to Reproduce:
# Switch tab: UserDataTab -> UserEmailTab (look on JBoss console)
# Switch tab: UserEmailTab -> UserDataTab (look on JBoss console)
# Switch tab: UserDataTab -> UserEmailTab (look on JBoss console)
# Switch tab: UserEmailTab -> UserDataTab (look on JBoss console)
# Switch tab: UserDataTab -> UserEmailTab (look on JBoss console)
# Switch tab: UserEmailTab -> UserDataTab (look on JBoss console)
Component/s: component-panels-layout-themes
> [rich:tabPanel] Switching tabs doesn't work correctly
> -----------------------------------------------------
>
> Key: RF-12025
> URL: https://issues.jboss.org/browse/RF-12025
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-panels-layout-themes
> Affects Versions: 4.1.0.Final, 4.2.0.Final
> Environment: JDK1.6,
> JBoss 6.0.Final,
> richfaces 4.1.0.Final/4.2.0.Final
> IE 9
> Reporter: Artur Mioduszewski
>
> Every tab switching caused more (perhaps 2 times more) calling of logger.debug("----preRenderHomeView");
> {code:title=XHTML FILE CODE EXTRACT}
> <ui:define name="metadata">
> <f:metadata>
> <f:event type="preRenderView" listener="#{homeAction.preRenderHomeView}"/>
> </f:metadata>
> </ui:define>
> <rich:tabPanel id="homeUserTabs" switchType="ajax" activeItem="#{homeAction.selectedUserHomeTab}" itemChangeListener="#{homeAction.selectedUserHomeTabChanged}" immediate="true">
> <rich:tab header="#{bundles.messages.tab_userMyDataTab}" id="UserDataTab" render="ajaxFlowPanel">
> <ui:include src="/WEB-INF/content-pages/userAccount/userAccountDataTab.xhtml"/>
> </rich:tab>
> <rich:tab header="#{bundles.messages.tab_userEmailTab}" id="UserEmailTab" render="ajaxFlowPanel">
> <ui:include src="/WEB-INF/content-pages/userAccount/userEmailDataTab.xhtml"/>
> </rich:tab>
> </rich:tabPanel>
> {code}
> {code:title="HomeAction"}
> public void preRenderHomeView() {
> logger.debug("----preRenderHomeView");
> }
> {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