javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-1068

Partial Processing Requirements for InvokeApplication and RenderResponse phases unspecified

    Details

      Description

      I could be missing this, but I can't find where in the spec the partial processing requirements for the InvokeApplication and RenderResponse lifecycle phases are listed.

      I encountered this problem when writing up the changebundle for JAVASERVERFACES_SPEC_PUBLIC-220, when I needed to update the bit of the spec that dealt with the <update> element pertaining to the ViewState.

      This happens in the RenderResponse phase, but I found no such text in the spec.

        Issue Links

          Activity

          Hide
          rogerk added a comment -

          Section 13.4.2 of the spec talks aboput Praitl View Processing. In summary, the "execute" portion of the lifecycle w/r/t ajax request processing is the “Apply Request Values Phase”, “Update Model Values Phase” and “Process Validations Phase”. In other words, you can dictate that a component gets processed through these lifecycle phases (over ajax).
          Likewise, Section 13.4.3 talks about Partial View Rendering which is ajax request processing through the Render Response Phase.

          Section 13.4.4 talks about the requirements for writing the partial response.
          More of the detail is also found in the javadocs.

          Show
          rogerk added a comment - Section 13.4.2 of the spec talks aboput Praitl View Processing. In summary, the "execute" portion of the lifecycle w/r/t ajax request processing is the “Apply Request Values Phase”, “Update Model Values Phase” and “Process Validations Phase”. In other words, you can dictate that a component gets processed through these lifecycle phases (over ajax). Likewise, Section 13.4.3 talks about Partial View Rendering which is ajax request processing through the Render Response Phase. Section 13.4.4 talks about the requirements for writing the partial response. More of the detail is also found in the javadocs.
          Hide
          Ed Burns added a comment -

          Thanks for pointing me to those sections, but I still don't see where we require that we render an <update> region for the ViewState. This is implemented in our PartialViewContextImpl.renderState() private method, which gets called during the RENDER_RESPONSE portion of the processPartial() method, but I don't see that requirement anywhere in the spec.

          Am I missing something?

          Show
          Ed Burns added a comment - Thanks for pointing me to those sections, but I still don't see where we require that we render an <update> region for the ViewState. This is implemented in our PartialViewContextImpl.renderState() private method, which gets called during the RENDER_RESPONSE portion of the processPartial() method, but I don't see that requirement anywhere in the spec. Am I missing something?
          Hide
          rogerk added a comment -

          It's in the jsdocs for the response function.

          Show
          rogerk added a comment - It's in the jsdocs for the response function.
          Hide
          Ed Burns added a comment -

          I need to update the text in the jsf.js file that covers the jsf.ajax.response() function.

          If an update element is found in the response with the identifier javax.faces.ViewState:

          <update id="javax.faces.ViewState">
          <![CDATA[...]]>
          </update>

          locate and update the submitting form's javax.faces.ViewState value with the CDATA contents from the response. Locate and update the javax.faces.ViewState value for all forms specified in the render target list.

          Show
          Ed Burns added a comment - I need to update the text in the jsf.js file that covers the jsf.ajax.response() function. If an update element is found in the response with the identifier javax.faces.ViewState: <update id="javax.faces.ViewState"> <![CDATA [...] ]> </update> locate and update the submitting form's javax.faces.ViewState value with the CDATA contents from the response. Locate and update the javax.faces.ViewState value for all forms specified in the render target list.
          Hide
          Ed Burns added a comment -

          Added to spec per Roger's suggestion.

          Show
          Ed Burns added a comment - Added to spec per Roger's suggestion.
          Hide
          Ed Burns added a comment -

          I'm not satisfied with the resolution. I think we need a sub-section in 2.2.6 for partial rendering that corresponds to 2.2.3.1 Partial Validations Partial Processing and 2.2.4.1 Update Model Values partial processing.

          In that section, I'll describe the need for the windowId <update> element, as well as the existing requirements for partial view rendering.

          Show
          Ed Burns added a comment - I'm not satisfied with the resolution. I think we need a sub-section in 2.2.6 for partial rendering that corresponds to 2.2.3.1 Partial Validations Partial Processing and 2.2.4.1 Update Model Values partial processing. In that section, I'll describe the need for the windowId <update> element, as well as the existing requirements for partial view rendering.
          Hide
          Ed Burns added a comment -

          http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1068

          SECTION: Modified Files
          ----------------------------
          M preface.fm

          • refer to new section 2.2.6.1.

          M requestProcessingLifecycle.fm

          • new section 2.2.6.1: describe partial render requirements, including
            the windowId for partial rendering.

          Sending preface.fm
          Sending requestProcessingLifecycle.fm
          Transmitting file data ..
          Committed revision 1057.

          Show
          Ed Burns added a comment - http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1068 SECTION: Modified Files ---------------------------- M preface.fm refer to new section 2.2.6.1. M requestProcessingLifecycle.fm new section 2.2.6.1: describe partial render requirements, including the windowId for partial rendering. Sending preface.fm Sending requestProcessingLifecycle.fm Transmitting file data .. Committed revision 1057.
          Hide
          Manfred Riem added a comment -

          Closing resolved issue out

          Show
          Manfred Riem added a comment - Closing resolved issue out

            People

            • Assignee:
              Ed Burns
              Reporter:
              Ed Burns
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified