<%@ page session="false" contentType="text/html;charset=utf-8"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <%@ include file="inc/head.inc"%>

PPR Example - ajaxifying a datatable using PPR with partialTriggerPattern

0 seconds since last page refresh.

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.
<%@include file="inc/page_footer.jsp"%>