<%@ 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 Examples - submit a form but process only specific components

0 seconds since last page refresh.
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.
<%@include file="inc/page_footer.jsp" %>