PPR Example - ajaxifying a datatable using PPR with partialTriggerPattern

0 seconds since last page refresh.
streetnumber streetname↑zipstate
92dummyStreet2noState
48dummyStreet1noState
64dummyStreet1noState
34dummyStreet3noState
88dummyStreet1noState
12
about this example

The partialTriggerPattern attribute takes a regular expression
(JavaScript regular expression). All input components which
clientIds match this regular expression trigger AJAX updates
of this pprPanelGroup.

In this example inputs for sorting and scrolling the datatable
sit in -mainform-. Therefore all clientIds of this inputs
will start with -mainform:-. (A client id is the HTML-ID
attribute the HTML-element rendered by a component has set)
Therefore the clientIds of all buttons match the pattern specified
in the pprPanelGroup and so all of them trigger AJAX updates
of the group.

In order not to interfere with other possible components on the
page the table could also be placed inside a naming container
like f:subview.


[HOME]   [SOURCE]