ptg ptg FACELETS PAGE LAYOUT TEXT FIELD WEB-INF//corejsf/ BUTTON WEB-INF//corejsf/ The es ess and error can be mapped to pages in faces- . If no mapping is specified, the page / or / is displayed. GET REQUESTS Request parameters set bean properties before the page is rendered. The e method is called when the button is rendered . The view parameters are added to the request URL. RADIO BUTTONS WEB-INF//corejsf/ WEB-INF//corejsf/ CONVERSION The number is displayed with currency symbol and group separator: $1, VALIDATION Using the bean validation framework (JSR 303) Page-level validation and conversion Error messages RESOURCES resources/css/ <?xml version="" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Transitional//EN" "/xhtml1/DTD/xhtml1-"> <html xmlns="9/xhtml" xmlns:f="http://java./jsf/core" xmlns:h="http://java./jsf/html" xmlns:ui="http://java./jsf/facelets"> <h:head>...</h:head> <h:body> <h:form> ... </h:form> </h:body> </html> <h:inputText value="#{}"> ***@Named("bean1") // or ***@ManagedBean(name="bean1") ***@SessionScoped public class SampleBean { public int getLuckyNumber() { ... } public void setLuckyNumber(int value) { ... } ... } <mandButton value="press me" action="#{}"/> public class SampleBean { public String login() { if (...) return "ess"; else return "error"; } ... } <f:metadata> <f:viewParam name="item" value="#{}"/> <f:viewParam name="userId" value="#{}"/> </f:metadata> <h:button value="Continue" e="#{}" includeViewParams="true"/> <h:selectOneRadio value="#{}> <f:selectItems value="#{}" var="it" itemLabel="#{}" itemValue="#{}"/> </h:selectOneRadio> public