[richfaces-issues] [JBoss JIRA] (RF-12108) Components second tab changes are not rendered after performing some ajax action if attribute ajaxRendered="true" inside <rich:message /> located on first tab

Artur Mioduszewski (JIRA) jira-events at lists.jboss.org
Sat Apr 28 05:03:18 EDT 2012


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

Artur Mioduszewski commented on RF-12108:
-----------------------------------------

Significant and usefull information could be: rich:tabPanel is populated in xhtml file started from <ui:composition tag inside <ui:define ...>

Something like below:


{code:title=Example of xhtml file construction}
<ui:composition template="/WEB-INF/content-pages/common/layout/template2.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a4j="http://richfaces.org/a4j"
        >

    <ui:define name="content">

        <rich:tabPanel id="homeTabs" switchType="ajax"
                       activeItem="#{homeAction.selectedOwnerHomeTab}" itemChangeListener="#{homeAction.selectedOwnerHomeTabChanged}"
                       immediate="true">
              .....

        </rich:tabPanel>

    </ui:define>
    
</ui:composition>
{code}
                
> Components second tab changes are not rendered after performing some ajax action if attribute ajaxRendered="true" inside  <rich:message /> located on first tab
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-12108
>                 URL: https://issues.jboss.org/browse/RF-12108
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.2.0.Final
>         Environment: JDK1.6,
> JBoss 6.0.Final,
> richfaces 4.1.0.Final/4.2.0.Final
> seam 3.1
> IE 9 
>            Reporter: Artur Mioduszewski
>
> In case getting 2 tabs (in my case it is primefaces tabs):
> {code:title=RENDERING ON SECOND TAB NOT WORKS (after clicking link)}
> First tab:
> <h:selectOneMenu id="nSurfacePercentageOfWholePlayback" value="#{newSurface.percentageOfWholePlayback}">
>      <f:selectItems value="#{staticPercentagesItems}"/>
> </h:selectOneMenu>
> <rich:message for="nSurfacePercentageOfWholePlayback" ajaxRendered="true"/>
> Second tab (some code with ajax)
> Ex.
> <a4j:commandLink styleClass="no-decor" execute="@this" action="#{componentManager.deactivateVertically}">
>     <h:graphicImage value="/images/icons/delete.gif" alt="Deactivate Vertically"/>
>     <a4j:param value="#{dayIndex.index + 1}" assignTo="#{componentManager.verticalDeactivationIndex}"/>
> </a4j:commandLink> 
> {code}
> {code:title=RENDERING ON SECOND TAB CORRECTLY WORKS (after clicking link)}
> First tab:
> <h:selectOneMenu id="nSurfacePercentageOfWholePlayback" value="#{newSurface.percentageOfWholePlayback}">
>      <f:selectItems value="#{staticPercentagesItems}"/>
> </h:selectOneMenu>
> <rich:message for="nSurfacePercentageOfWholePlayback" ajaxRendered="false"/>
> Second tab (some code with ajax)
> Ex.
> <a4j:commandLink styleClass="no-decor" execute="@this" action="#{componentManager.deactivateVertically}">
>     <h:graphicImage value="/images/icons/delete.gif" alt="Deactivate Vertically"/>
>     <a4j:param value="#{dayIndex.index + 1}" assignTo="#{componentManager.verticalDeactivationIndex}"/>
> </a4j:commandLink> 
> {code}
> When I change tabs order, problem does not exist.

--
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