[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
Mon May 28 13:29:17 EDT 2012


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

Artur Mioduszewski edited comment on RF-12108 at 5/28/12 1:27 PM:
------------------------------------------------------------------

The main differances are:
- tabs in my project are more complicated (contain more components inside)
- Structure of tabs is like below (I have tried implement simple example in downloaded your seperated project but without success):

  'first_rich:tab > rich:popupPane > rich:message'
  'second_rich:tab > rich:popupPane'

It looks like the cause of problem is: wrong (or not) rendering popup from first tab - in scenario when I directly open secend tab (like in your example)
After manual changing tabs like this: secondTab->firstTab->secondTab auto rendering on second tab works correctly

----

So currently I know two arrounding of this problem:
1. Making  'first_rich:tab > rich:popupPane > rich:message.autoRendered' = false  ( - perhaps it helps just in this my specific case)
2. Rendering 'first_rich:tab > rich:popupPane' only if first_rich:tab is selected by user:
   Ex. <rich:popupPanel ... rendered="#{homeAction.selectedOwnerHomeTab eq 'OwnerPricePlansTab'}"> ... </rich:popupPanel>  - than auto rendering on second tab  also works correctly 

                
      was (Author: kliczko):
    The main differances are:
- tabs in my project are more complicated (contain more components inside)
- Structure of tabs is like below (I have tried implement simple example in downloaded your seperated project but without success):

  'first_rich:tab > rich:popupPane > rich:message'
  'second_rich:tab > rich:popupPane'

It looks like the cause of problem is: wrong (or not) rendering popup from first tab - in scenario when I directly open secend tab (like in your example)
After manual changing tabs like this: secondTab->firstTab->secondTab auto rendering on second tab works correctly

----

So currently I know to arrounding of this problem:
1. Making  'first_rich:tab > rich:popupPane > rich:message.autoRendered' = false  ( - perhaps it helps just in this my specific case)
2. Rendering 'first_rich:tab > rich:popupPane' only if first_rich:tab is selected by user:
   Ex. <rich:popupPanel ... rendered="#{homeAction.selectedOwnerHomeTab eq 'OwnerPricePlansTab'}"> ... </rich:popupPanel>  - than auto rendering on second tab  also works correctly 

                  
> 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