Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4661

SearchExpressions: Infinite Loop with SubView

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.3.10, 3.0.2, 2.3-next-M8, 4.0.2, 4.1.0-RC1
    • None
    • None
    • None

    Description

      Attached is reproducible example using only core JSF code.

      subview.zip

       

      <h:form id="frmTest">
            <f:subview id="subview1">
              <!-- Components within the first subview -->
              <h:outputText value="This is subview 1" />
              <h:inputText id="txtString" value="#{testView.string}" />
            </f:subview>
            <p></p>
            <f:subview id="subview2">
              <!-- Components within the second subview -->
              <h:outputText value="This is subview 2" />
              <h:inputText value="#{testView.integer}" />
            </f:subview>      <p></p>
            <h:commandButton value="Submit (Error Response Committed)">
               <f:ajax render=":subview1:txtString" event="click" ></f:ajax>
            </h:commandButton>
            <h:commandButton value="Submit (Works)">
              <f:ajax render="subview1:txtString" event="click" ></f:ajax>
            </h:commandButton>
          </h:form> 

      The subview `render=":subview1:txtString"` gets stuck an infinite loop while `render="subview1:txtString"` works fine.

      The request for the failed infinite loop...

      javax.faces.partial.render"j_id__v_0" 

      Running this same code with Mojarra 2.3 using `mvn clean jetty:run -Pmojarra23` the button works fine and the request looks like...
      ^^

      javax.faces.partial.render"frmTest:subview1:txtString" 

       

       

      Attachments

        1. subview.zip
          7 kB
          Melloware

        Activity

          People

            melloware Melloware
            melloware Melloware
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: