Hi Matthias and Werner,

The partial submit issue I posted to [email protected] received nearly instant response from Roger Kitain. Definitely not /dev/null, these guys really take their job serious. Werner, it would be great, if you forwarded your mail to the d...@myfaces list, so we can see what happens to it.

Afaik the spec doesn't say anything about the view state issue apart from the JS docs (does anybody know any other places that talks about the id of the hidden view state inputs?). The Javascript shouldn't work based on the hidden inputs ids, but based on the hidden inputs names. Here's a proposal on how to change the JS docs. If you agree, I'll post it to [email protected].

Correct the jsdoc for <static> jsf.ajax.*response*(request, context) like this:

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

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

Include this |state| in the document as follows:

   * Extract this |<update>| element's |CDATA| contents from the response.

<<<<<< (remove thes following lines)

   * If the document contains an element with the identifier
     |javax.faces.ViewState| replace its contents with the |CDATA|
     contents.
   * For each |<form>| element in the document:
         o If the |<form>| element contains an |<input>| element with
           the identifier |javax.faces.ViewState|, replace the
           |<input>| element contents with the |<update>| element's
           |CDATA| contents.
         o If the |<form>| element does not contain an element with the
           identifier |javax.faces.ViewState|, create an |<input>|
           element of the type |hidden|, with the identifier
           |javax.faces.ViewState|, set its contents to the |<update>|
           element's |CDATA| contents, and add the |<input>| element as
           a child to the |<form>| element.

======= (add the following lines)

   * Set the value of all elements within the document with the name
     |javax.faces.ViewState |to the CDATA contents
   * For each |<form>| element in the document:
         o If the |<form>| element does not contain an element with the
           name |javax.faces.ViewState|, create an |<input>| element of
           the type |hidden|, with the name |javax.faces.ViewState|,
           set its value to the |<update>| element's |CDATA| contents,
           and add the |<input>| element as a child to the |<form>|
           element.

>>>>>>>

Best Regards,
Ganesh


Reply via email to