Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. 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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.0.Final, 4.2.2.Final
    • Fix Version/s: 4.5.0.Alpha3
    • Component/s: None
    • Labels:
      None
    • Environment:

      JDK1.6,
      JBoss 6.0.Final, JBoss 7.1.1.Final
      richfaces 4.1.0.Final/4.2.0.Final/4.2.2.Final
      seam 3.1
      IE 9, Chrome, Firefox

    • Steps to Reproduce:
      Hide

      Reproduction on metamer application:
      1. deploy metamer and load http://localhost:8080/metamer/faces/components/richTabPanel/rf-12108.xhtml
      2. Ensure that after reload of page the default rendered tab is the second one.
      3. Fill in the input string.
      4. See that the the outputText with id out is not updated by Ajax with the filled in text.
      5. Click on the first tab.
      6. Click on the second tab.
      7. Repeat the filling in and see that the expected area is updated by Ajax correctly.

      Show
      Reproduction on metamer application: 1. deploy metamer and load http://localhost:8080/metamer/faces/components/richTabPanel/rf-12108.xhtml 2. Ensure that after reload of page the default rendered tab is the second one. 3. Fill in the input string. 4. See that the the outputText with id out is not updated by Ajax with the filled in text. 5. Click on the first tab. 6. Click on the second tab. 7. Repeat the filling in and see that the expected area is updated by Ajax correctly.
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Setting rich:message attribute ajaxRendered="false"

      Show
      Setting rich:message attribute ajaxRendered="false"

      Description

      In case getting 2 tabs (in my case it is primefaces tabs):

      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> 
      

      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> 
      

      When I change tabs order, problem does not exist.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bleathem Brian Leathem
                Reporter:
                kliczko Artur Mioduszewski
              • Votes:
                4 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: