PPR Examples - submit a form but process only specific components
0
seconds since last page refresh.
Enter the value for update:
Leave empty for force validation error
partial update button which failes:
partial update button which works:
PPRPanelGroup:
about this example
Both input fields in this form are required. Normally a PPR request will fail as long as the validation chain reports a single error.
The second button configures the ppr request in a way that allows MyFaces to validate/model-update only those fields in question.
If you press the first button nothing happens as long as the second textfield has no data.
If you press the second button it is sufficient to enter something into the first textfield.
Also notice that a user defined java script function is used to read the ppr response and update the dom as required.
[HOME]
[SOURCE]