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

Make web-partialresponse_2_2.xsd w/r/t "Insert" Element Match Jsdocs.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently the web-partialresponse_2_2.xsd schema w/r/t insert element processing does not match the jsdocs for the implementation. This was a feature requested by ICESoft for 2.0, and based on their response we should change the schema to match the jsdocs.

        Activity

        Hide
        Ed Burns added a comment -

        Task order

        1. Roger confirms the existing impl is correct with respect to design intent, and makes any necessary changes.

        2. Ed updates the XSD to match the impl.

        3. Roger updates the JSDoc to match the XSD and impl.

        Show
        Ed Burns added a comment - Task order 1. Roger confirms the existing impl is correct with respect to design intent, and makes any necessary changes. 2. Ed updates the XSD to match the impl. 3. Roger updates the JSDoc to match the XSD and impl.
        Hide
        rogerk added a comment -

        The schema must match this response format:

        <partial-response id="j_id1"><changes><insert><before id="alpha"><![CDATA[This is before text]]></before></insert></changes></partial-response>

        and for insert after:

        <partial-response id="j_id1"><changes><insert><after id="alpha"><![CDATA[This is after text]]></after></insert></changes></partial-response>

        The jsdocs will be updated as:

        • <p><i>Insert Element Processing</i></p>
        • <li>If an <code><insert></code> element is found in
        • the response with a nested <code><before></code>
        • element:
        • <pre><code><insert>
        • <before id="before id">
        • <![CDATA[...]]>
        • </before>
        • </insert></code></pre>
        • <ul>
        • <li>Extract this <code><before></code> element's <code>CDATA</code> contents
        • from the response.</li>
        • <li>Find the DOM element whose identifier matches <code>before id</code> and insert
        • the <code><before></code> element's <code>CDATA</code> content before
        • the DOM element in the document.</li>
        • </ul>
        • </li>
        • <li>If an <code><insert></code> element is found in
        • the response with a nested <code><after></code>
        • element:
        • <pre><code><insert>
        • <after id="after id">
        • <![CDATA[...]]>
        • </after>
        • </insert></code></pre>
        • <ul>
        • <li>Extract this <code><after></code> element's <code>CDATA</code> contents
        • from the response.</li>
        • <li>Find the DOM element whose identifier matches <code>after id</code> and insert
        • the <code><after></code> element's <code>CDATA</code> content after
        • the DOM element in the document.</li>
        • </ul>
        • </li>

        The jsdocs update is part of http://java.net/jira/browse/JAVASERVERFACES-2752

        Show
        rogerk added a comment - The schema must match this response format: <partial-response id="j_id1"><changes><insert><before id="alpha"><![CDATA [This is before text] ]></before></insert></changes></partial-response> and for insert after: <partial-response id="j_id1"><changes><insert><after id="alpha"><![CDATA [This is after text] ]></after></insert></changes></partial-response> The jsdocs will be updated as: <p><i>Insert Element Processing</i></p> <li>If an <code><insert></code> element is found in the response with a nested <code><before></code> element: <pre><code><insert> <before id="before id"> <![CDATA [...] ]> </before> </insert></code></pre> <ul> <li>Extract this <code><before></code> element's <code>CDATA</code> contents from the response.</li> <li>Find the DOM element whose identifier matches <code>before id</code> and insert the <code><before></code> element's <code>CDATA</code> content before the DOM element in the document.</li> </ul> </li> <li>If an <code><insert></code> element is found in the response with a nested <code><after></code> element: <pre><code><insert> <after id="after id"> <![CDATA [...] ]> </after> </insert></code></pre> <ul> <li>Extract this <code><after></code> element's <code>CDATA</code> contents from the response.</li> <li>Find the DOM element whose identifier matches <code>after id</code> and insert the <code><after></code> element's <code>CDATA</code> content after the DOM element in the document.</li> </ul> </li> The jsdocs update is part of http://java.net/jira/browse/JAVASERVERFACES-2752
        Hide
        Ed Burns added a comment -

        The JSDocs look good.

        Show
        Ed Burns added a comment - The JSDocs look good.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 40 minutes
              40m