Topic : Java Server Faces (JSF) Environment : J2EE 5.0, MyFaces 1.1.5 Introduction to f:attribute This section demonstrates how to use the f:attribute tag in Java Server Faces(JSF). This tag is part fo the core tag libraray. How to use? f:attribute tag will be more useful when we could not use f:param tag for passing [...]
Archive | April 12th, 2008
Display error messages in JSF [ h:message ] – part 2
April 12, 2008
Topic : Java Server Faces (JSF) Environment : J2EE 5.0, MyFaces 1.1.5 fieldErrorMessage.jsp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 <!– Source : www.javabeat.net –> <html> <body> <f:view> <h:form id="error"> <h:inputText id="name" value="#{fieldErrorMessageBean.name}" > <f:validateLength maximum="5"/> </h:inputText> <h:message for="name"/> <h:commandButton value="Submit" action="#{fieldErrorMessageBean.submit}"/> [...]
Display error messages in JSF [ h:messages ] – part 1
April 12, 2008
Topic : Java Server Faces (JSF) Environment : J2EE 5.0, MyFaces 1.1.5 errorMessage.jsp 1 2 3 4 5 6 7 8 9 10 11 12 <!– Source : www.javabeat.net –> <html> <body> <f:view> <h:form id="select"> <h:messages /> <h:inputText id="name" value="#{errorMessageBean.name}"/> <h:commandButton value="Submit" action="#{errorMessageBean.submit}"/> </h:form> </f:view> </body> </html> ErrorMessageBean.java 1 2 3 4 5 6 7 [...]






April 12, 2008
0 Comments