faces
faces copied to clipboard
add partial parameter
add attribute partialSubmit="true/false" to f:ajax and parameter partialSubmit:'true/false' to jsf.ajax.request options
Only the components named in the "execute" parameter are processed in phase 2-4, but the spec insists on submitting all elements included in a form. If partialSubmit is set to true submission is reduced to the form params named in execute. This is a performance feature that can boost speed on large pages.
Environment
Operating System: All Platform: All
Affected Versions
[2.0]
- Issue Imported From: https://github.com/javaee/javaserverfaces-spec/issues/723
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: Unassigned
@glassfishrobot Commented Reported by ganeshpuri
@glassfishrobot Commented ganeshpuri said: Set target milestone to 2.1
@glassfishrobot Commented @edburns said: triage
@glassfishrobot Commented @edburns said: rogerk
@glassfishrobot Commented rogerk said: status whiteboard
@glassfishrobot Commented rogerk said: target milestone
@glassfishrobot Commented ganeshpuri said: Former name: "partialSubmit", but "partial" is more compact. Would be great to get this into JSF 2.1
@glassfishrobot Commented rogerk said: unfortunately this will go into 2.2
@glassfishrobot Commented rogerk said: triage
@glassfishrobot Commented tedgoddard said: This is a very good feature provided that there is also a "whitelist" of additional parameters that must be submitted with every Ajax post. Alternatively, a JavaScript callback could be registered to allow frameworks to add required parameters to the POST before submission.
@glassfishrobot Commented @edburns said: Regarding the whitelist, we do have that already as documented in the JSDoc.
I strongly favor the callback option. We already have a function jsf.getViewState(formElement). We could specify that a user provided function is called before returning from getViewState() that takes the associative array and the function can modify the associative array however they like.
@glassfishrobot Commented @arjantijms said: MyFaces seems to have implemented this and calls it Partial Page Submit (PPS). Werner Punz recently blogged about this great feature here: http://werpublogs.blogspot.com/2011/07/apache-myfaces-jsfjs-queue-control.html
Incidentally, JavaServer Faces 2.0 The Complete Reference already spoke about a "Partial Submit" (page 343 "... only the value of the userid field is submitted" and Figure 12-2, page 345).
@glassfishrobot Commented @edburns said: Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
@glassfishrobot Commented @manfredriem said: Setting priority to Major
@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-723