Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Open Open
Priority: Critical Critical
Assignee: Unassigned
Reporter: ganeshpuri
Votes: 7
Watchers: 3

If you were logged in you would be able to see more operations.

add partial parameter

Created: 19/Jan/10 02:46 AM   Updated: 08/Nov/13 09:15 PM
Component/s: Ajax/JavaScript
Affects Version/s: 2.0
Fix Version/s: 2.3

Time Tracking:
Not Specified


Operating System: All
Platform: All

Issuezilla Id: 723
Status Whiteboard:

size_small importance_large

Participants: arjan tijms, Ed Burns, ganeshpuri, rogerk and tedgoddard

 Description  « Hide

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.

ganeshpuri added a comment - 19/Jan/10 02:48 AM

Set target milestone to 2.1

Ed Burns added a comment - 08/Jun/10 01:01 PM


Ed Burns added a comment - 22/Jun/10 09:04 PM


rogerk added a comment - 29/Jun/10 08:05 AM

status whiteboard

rogerk added a comment - 29/Jun/10 09:23 AM

target milestone

ganeshpuri added a comment - 30/Jun/10 09:43 PM

Former name: "partialSubmit", but "partial" is more compact.
Would be great to get this into JSF 2.1

rogerk added a comment - 13/Sep/10 08:27 AM

unfortunately this will go into 2.2

rogerk added a comment - 16/Nov/10 12:46 PM


tedgoddard added a comment - 21/Apr/11 10:12 AM

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.

Ed Burns added a comment - 25/Apr/11 03:05 PM

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.

arjan tijms added a comment - 13/Nov/11 04:18 PM

MyFaces seems to have implemented this and calls it Partial Page Submit (PPS). Werner Punz recently blogged about this great feature here:

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).