<%@ 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 - using PPR with drop-down and checkbox onChange handlers

0 seconds since last page refresh.

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