PPR Example - using PPR with drop-down and checkbox onChange handlers
0
seconds since last page refresh.
update group by checking:
update group by changing the value:
test1
test2
test3
update group by changing the value:
Checkbox is:
not checked
Drop Down value is:
Input text value is:
about this example
This example shows how event-handlers of input-fields (such as text-inputs, checkboxes or dropdowns)
can be used to update page regions via AJAX.
For this, use the special feature of pprPanelGroup to supply desired-event-handlers in the partialTriggers section of a component. e.g.: componentId1(onkeyup) or componentId2(onclick,onchange). This example also shows that in the general case, you need to set immediate=true and a valueChangeListener on components to make sure that this very component is processed ahead of the pack for conversion and validation, so that a failed conversion or validation won't hinder the AJAXified part of the page to redisplay.
[HOME]
[SOURCE]