[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

Juraj Huska (JIRA) jira-events at lists.jboss.org
Wed May 30 07:37:18 EDT 2012


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

Juraj Huska edited comment on RF-12108 at 5/30/12 7:35 AM:
-----------------------------------------------------------

Hello Artur,

thanks for your input. According to your comments, I think that I reproduced the issue.

IMHO the issue can be generalized in this way:

The application looks like:
- The problem occurs when there is at least two tabs
- On the first tab there is element {{rich:message}} with attribute {{ajaxRendered}} set to true
- On the second tab there is any element updated by Ajax responses
- The order of tabs does matter, when it is otherwise it works

The issue:
- When the tab panel is set to be switched to the second tab by default, then handling of Ajax updates on second tab is broken till the user click on the first tab, which contains rich:message element and then on the second tab again.

If I understand you correctly, is that what you notice too ?

                
      was (Author: jhuska):
    Hello Artur,

thanks for your input. According to your comments I think that I reproduced the issue.

IMHO the issue can be generalized in this way:

The application looks like:
- The problem occurs when there is at least two tabs
- On the first tab there is element {{rich:message}} with attribute {{ajaxRendered}} set to true
- On the second tab there is any element updated by Ajax responses
- The order of tabs does matter, when it otherwise it works

The issue:
- When the tab panel is set to be switched to the second tab by default, then handling of Ajax updates on second tab is broken till the user click on the first tab, which contains rich:message element and then on the second tab again.

If I understand you correctly, is that what you notice too ?

                  
> 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
>            Assignee: Juraj Huska
>
> 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