O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – partial processing on the user details form

In this section, we will demonstrate how to process only a subset of components based on the action performed.

  1. Create userDetails.xhtml with the User Details Form containing update and delete actions:
    <h:form id="userDetailsForm"> <p:panel header="User Details Form" style="width: 800px;"> <p:messages/> <h:panelGrid columns="3"> <p:outputLabel value="UserId:*"/> <p:inputText id="userId" value="#{userController.loginUser.id}" required="true" label="UserId" /> <p:message id="userIdMsg" for="userId"/> <p:outputLabel value="UserName:*"/> <p:inputText id="userName" value="#{userController.loginUser.userName}" required="true" label="UserName" /> <p:message id="userNameMsg" for="userName"/> <p:outputLabel ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required