tag:blogger.com,1999:blog-82787448484123726262023-07-17T02:28:45.875-07:00JSF Tutorial & SEAM TutorialStep by step guid to start the JSF and SEAM Project setup and get good working knowledge.Binod Sumanhttp://www.blogger.com/profile/08999470051156803457noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8278744848412372626.post-24380101367364832402009-01-21T10:06:00.000-08:002011-03-06T22:24:52.372-08:00First Seam Example<div dir="ltr" style="text-align: left;" trbidi="on">I tried a lot, to execute one simple application in SEAM. But again and again I got fail. I visited a lot of link but didnt get any clear running simple example. Even one of my friend is having some year experience in Seam and JSF, but she also didnt help me. From that day I was struggling to execute even a simple and first Seam example. Today I got success. :)<br />
<br />
My previous post might be not run, but this post is fully tested by me and it is working. You can go throught stet by step.<br />
<br />
<span style="color: #cc0000;">Software Required</span>.<br />
1. jboss-seam-2.1.1.GA<br />
2. jboss-4.2.0.GA<br />
3. Eclipse Europa<br />
4. PostgreSQL 8.1.0<br />
<br />
Suppose you have all these software in C drive. (I am assuming.)<br />
<span style="color: #cc0000;">Please copy database drive jar file into jboss-seam lib. (Copy C:\PostgreSQL\8.1\jdbc\postgresql-8.1dev-403.jdbc2ee.jar INTO C:\jboss-seam-2.1.1.GA\lib)</span><br />
<span style="color: #cc0000;">Step1 :</span> Create one workspace like C:\Workspace_Seam<br />
<span style="color: #cc0000;">Step2:</span> Open dos prompt<br />
c:\jboss-seam-2.1.1.GA>seam setup<br />
It will ask many configuration, put value as below<br />
<span style="color: #cc0000;">Enter you java project workspace :</span> C:\Workspace_Seam<br />
<span style="color: #cc0000;">Enter your JBoss AS home directory:</span> c:\jboss-4.2.0.GA<br />
<span style="color: #cc0000;">Enter the Project name :</span> Binod_SEAM_Proj<br />
Then put three time enter key (Accepting default values)<br />
<span style="color: #cc0000;">Enter Java package name for your session bean :</span> com.suman.session<br />
<span style="color: #cc0000;">Enter Java package name for your entity bean :</span> com.suman.entity<br />
<span style="color: #cc0000;">Enter Java package name for your test cases :</span> com.suman.test<br />
<span style="color: #cc0000;">What kind of database are you using :</span> postgres<br />
<span style="color: #cc0000;">Enter the Hibernate dialect for your database :</span> org.hibernate.dialect.PostgreSQLDialect<br />
<span style="color: #cc0000;">Enter the filesystem path to JDBC driver jar :</span> C:\PostgreSQL\8.1\jdbc\postgresql-8.1dev-403.jdbc2ee.jar<br />
<span style="color: #cc0000;">Enter JDBC drive class for your database :</span> org.postgresql.Driver<br />
<span style="color: #cc0000;">Enter JDBC URL for your database :</span> jdbc:postgresql://localhost:5432/postgres<br />
<span style="color: #cc0000;">Enter database user name:</span> postgres<br />
<span style="color: #cc0000;">Enter database password:</span> suman<br />
Put enter key 5 times to set default value.<br />
<br />
<span style="color: #cc0000;">Step3:</span>c:\jboss-seam-2.1.1.GA> seam create-project<br />
It will create one folder Binod_SEAM_Proj (Your project name) in C:\Workspace_Seam (Your workspace). And copy a lot of files including one project in Binod_SEAM_Proj folder.<br />
<br />
<span style="color: #cc0000;">Step4:</span><br />
c:\jboss-seam-2.1.1.GA> seam generate<br />
It will build the application and generate ear file i.e. Binod_SEAM_Proj.ear inside the C:\Workspace_Seam\Binod_SEAM_Proj\exploded-archives folder.<br />
<br />
<span style="color: #cc0000;">Step5:</span><br />
c:\jboss-seam-2.1.1.GA> seam deploy<br />
It will deploy the application and copy Binod_SEAM_Proj.ear to C:\jboss-4.2.0.GA\server\default\deploy<br />
<br />
<span style="color: #cc0000;">Step6:</span> Start the jboss server<br />
C:\jboss-4.2.0.GA\bin>run.bat<br />
You will get message in server console like this<br />
00:40:10,406 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.2.0.GA/server/default/deploy/Binod_SEAM_Proj.ear/<br />
<br />
<span style="color: #cc0000;">Step7:</span><br />
Open internet explorer and type<br />
<a href="http://localhost:8080/Binod_SEAM_Proj">http://localhost:8080/Binod_SEAM_Proj</a><br />
You will get one page having written<br />
Welcome to Seam!<br />
Your seam-get project is deployed! Here are some ...........<br />
<br />
<span style="color: #cc0000;">Step8:</span><br />
Open Eclipse and put the workspace C:\Workspace_Seam<br />
File -> Import -> General -> Existing Projects into Workspace -> Browse -> choose Binod_SEAM_Proj<br />
Goto C:\jboss-seam-2.1.1.GA\examples\registration\src\org\jboss\seam\example\registration<br />
and copy Register.java and RegisterAction.java and paste into Eclipse Binod_SEAM_Proj->src/hot-> suman.session<br />
It will show some exception. So change the package in both java file from<br />
package org.jboss.seam.example.registration; to package suman.session;<br />
It will show one more exception, that would be solve in next step.<br />
<br />
<span style="color: #cc0000;">Step9:</span><br />
Copy User.java from C:\jboss-seam-2.1.1.GA\examples\registration\src\org\jboss\seam\example\registration into Eclipse Binod_SEAM_Proj -> src/main -> suman.entity. Change the package name from<br />
package org.jboss.seam.example.registration; to package suman.entity;<br />
Now there woule not be any exception.<br />
<br />
<span style="color: #cc0000;">Step10:</span> Go to E:\SEAM\jboss-seam-2.1.1.GA\jboss-seam-2.1.1.GA\examples\registration\view and copy all files. (index.html, register.xhtml, registered.xhtml) into Eclipse Binod_SEAM_Proj -> View. (Overwrite all files).<br />
<br />
<span style="color: #cc0000;">Step11:</span><br />
Stop the jboss server<br />
Delete Binod_SEAM_Proj.ear from C:\jboss-4.2.0.GA\server\default\deploy<br />
<br />
<span style="color: #cc0000;">Step12:</span> Right click on build.xml -> Run As -> Ant Build<br />
Again it will build the application and deploy the application.<br />
Start the jboss server C:\jboss-4.2.0.GA\bin>run.bat<br />
Open internet explorer and put<br />
<a href="http://localhost:8080/Binod_SEAM_Proj2">http://localhost:8080/Binod_SEAM_Proj2</a><br />
You will get User Entry form having Username, Real Name, Password<br />
Put data in all these text field and click on Register button.<br />
You will get one confirmation message.<br />
Now go to database, here one table is created with name users. That will have all the above given information.<br />
<br />
Thats it .................. :)</div>Binod Sumanhttp://www.blogger.com/profile/08999470051156803457noreply@blogger.com20tag:blogger.com,1999:blog-8278744848412372626.post-6660003878574301102009-01-15T18:20:00.000-08:002009-01-15T18:32:56.432-08:00HOW TO SETUP SEAM PROJECT SEAM TUTORIAL<div>I visited many links and go through many books, but didnt any easy to setup the SEAM project.</div>
<br /><div>After a lot of R&D on this set up, now sharing with you.</div>
<br /><div><strong><font color="#cc0000">Software Required</font></strong></div>
<br /><div>1. jems-installer-1.2.0.GA (jems-installer-1.2.0.GA.jar) [ <a href="http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=193295">Download Link </a>]</div>
<br /><div>2. Eclipse Europa [ <a href="http://www.eclipse.org/downloads/">Download Link </a>]</div>
<br /><div>3. HSQL DB [ <a href="http://hsqldb.org/">Download Link </a>]</div>
<br /><div> </div>
<br /><div>Supposer you have kept all these software in E:\SEAM<br />A. Install jboss-4.0.5.GA using jems-installer-1.2.0.GA</div>
<br /><div>1. E:\seam\java -jar jems-installer-1.2.0.GA.jar (Press Enter)</div>
<br /><div>2. You will get language choose pop up, select English</div>
<br /><div>3. Next -> Next -> Accept terms and conditions (after confirm)Change select the installation path to D:\seam_work\jboss-4.0.5.GA</div>
<br /><div>4. Select ejb3 during installation</div>
<br /><div>5. let it standard -> Next</div>
<br /><div>6. Set JBOSS_HOME=D:\seam_work\jboss-4.0.5.GA in environment variable</div>
<br /><div>7. Check JAVA_HOME and JBOSS_HOME setup or not</div>
<br /><div>8. C:\>set jJAVA_HOME=C:\jdk1.5.0_12JBOSS_HOME=D:\seam_work\jboss-4.0.5.GA<br />9. Start the jboss server<br />D:\seam_work\jboss-4.0.5.GA\bin> run.batafter start server, just confirm with <a href="http://localhost:8080/">http://localhost:8080/</a><br />Now configure the seam project<br />E:\SEAM\jboss-seam-2.1.1.GA>seam setupEnter your java project workspace C:\jsf_workspaceEnter your Jboss home directoryD:\seam_work\jboss-4.0.5.GAEnter the project namemySeamProjThen just press enter, enter ........<br />You will get message<br />BUILD SUCCESSFULL<br />E:\SEAM\jboss-seam-2.1.1.GA\jboss-seam-2.1.1.GA>seam new-project<br />now to check C:\jsf_workspace\mySeamProj, many file and folder copied to this folder.<br />Now open Eclisp and set workspace C:\jsf_workspaceFile -> Import -> General -> Existing Projects into Workspace -> Browse -> c:\jsf_workspace\mySeamProj -> Finish<br />A build file exceutes automatically and create the ear file.<br /><br /><br /><br /><br /> </div>Binod Sumanhttp://www.blogger.com/profile/08999470051156803457noreply@blogger.com3tag:blogger.com,1999:blog-8278744848412372626.post-60188634931083434502009-01-14T07:16:00.000-08:002009-01-14T09:31:15.578-08:00How to add Validation in JSF<span style="color:#cc0000;">Continue from previous blog ..........<br /></span><strong><span style="color:#990000;">Validation in JSF<br /></span></strong><br />Now see that how to put the validation in input values (using previous blog example).<br /><br />1. Code to check for no input for a name to make sure that no empty name is submitted. To do that have to use required attribute of inputText tag.<br /><br /><h:inputText value="#{StudentInfoBean.name}" required="true"><br /><br />2. Code to check for reasonable length of input for a name. To do that have to use f:validateLength tag.<br /><f:validateLength minimum="2" maximum="10"/><br /><br />Now complete code for name input<br /><h:inputText value="#{StudentInfoBean.name}" required="true"><br /><f:validateLength minimum="2" maximum="10"/><br /></h:inputText><br /><br />3. Still error message will not show on the screen, to show error message have to add this below code<br /><h:messages style="color:darkred"/><br /><br /><span style="color:#990000;">Now complete studentInfoEntry.jsp<br /></span><br /><%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %><br /><%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %><br /><f:loadBundle basename="messages" var="message"/><br /><f:view><br /><html><br /><head><title>JSF DEMO BY BINOD</title></head><br /><br /><body><br /><br /><span style="color:#990000;"><p><br /><h:messages style="color:darkred"/><br /></p><br /></span><br /><h:form><br /><h1><h:outputText value="#{message.input_header}"/></h1> <br><br /><br /><h:outputText value="#{message.prompt_student_name}"/><br /><h:inputText value="#{StudentInfoBean.name}" <span style="color:#990000;">required="true"</span>><br /><span style="color:#990000;"><f:validateLength minimum="2" maximum="10"/><br /></span></h:inputText><br /><br><br /><br /><h:outputText value="#{message.prompt_roll_number}"/><br /><h:inputText value="#{StudentInfoBean.roll}" /> <br><br /><br /><h:commandButton action="result" value="#{message.button_text}" /><br /></h:form><br /></body><br /></html><br /></f:view><br /><br />There are two type of validations are used in above code for student name<br />1. Student name can not be empty.<br />2. Student name can have of minimum 2 or maximum 2 characters.<br />If any criterial does fail then you will get error on the top of screen, because we have used <h:mesage ...... /> at top of screen.<br /><span style="color:#990000;">One problem is there in above code that every time you will get the any type of error on top your screen, but error should show just infront of field. To do that, we will change the location of <h:messages style="color:darkred"/> and have to use of input id. </span><br /><h:inputText id="<span style="color:#990000;">studentName</span>" value="#{StudentInfoBean.name}" required="true"> <f:validateLength minimum="2" maximum="10"/> </h:inputText><br /><font color="#FF0000"><h:message for="<span style="color:#990000;">studentName</span>"/></font><br />I used the id for input component and used same id with message for tag.<br />We can also put all the component in tabular format for good look.<br />Again complete code of <strong><span style="color:#cc0000;">studentInfoEntry.jsp<br /></span></strong><%@ taglib uri="<a href="http://java.sun.com/jsf/html">http://java.sun.com/jsf/html</a>" prefix="h" %><br /><%@ taglib uri="<a href="http://java.sun.com/jsf/core">http://java.sun.com/jsf/core</a>" prefix="f" %><br /><f:loadBundle basename="messages" var="message"/><br /><f:view><html><br /><head><title>JSF DEMO BY BINOD</title></head><br /><body><br /><h:form><br /><table ><br /><tr> <td align="center"><h2><h:outputText value="#{message.input_header}"/></h2></td> </tr><td></td><tr> </tr><br /><tr> <td><h:outputText value="#{message.prompt_student_name}"/></td><br /><td> <p></p><p><h:inputText id="studentName" value="#{StudentInfoBean.name}" <span style="color:#990000;">required="true"</span>> <span style="color:#cc0000;"><f:validateLength minimum="2" maximum="10"/> </span><br /></h:inputText><br /><font ><span style="color:#cc0000;"><h:message for="studentName"/></span></font><br /></td> </tr><tr> <td><br /><h:outputText value="#{message.prompt_roll_number}"/></td> <td> <h:inputText id="roll" value="#{StudentInfoBean.roll}" > <span style="color:#cc0000;"><f:validateLongRange minimum="1" maximum="500"/></span> </h:inputText><br /><font color="#FF0000"><span style="color:#cc0000;"><h:message for="roll"/></span></font> </td> </tr><tr> <td><h:commandButton action="result" value="#{message.button_text}" /></td> </tr> </table> </h:form> </body></html></f:view><br /><br />Now there are three validations in the above code<br />1. Name can not be empty<br />2. Name can have of minimum 2 characters and maximum 10 characters.<br />3. Roll must be between 1 to 500 includings 1 and 500.<br />Now we will get error in front of respective input box. Means if error is related to name, it will come in front of name input box.</p><p><strong><span style="color:#cc0000;">How to change the default error message<br /></span></strong>1. Make one packase say (com.suman.message.validation) in src folder and make one properties file (Mymessage.properties) in that package. </p><p>Mymessage.properties </p><p>javax.faces.component.UIInput.REQUIRED=Please enter a value for this field. </p><p>2. Add this code inside faces-config.xml<br /><application> <message-bundle>com.suman.message.validation.Mymessage</message-bundle> </application><br /><br />Restart the server, now you will get the difference in error message ealier it was Validation error : Value is required now it is Please enter a value for this field.</p><br /><p><strong><span style="color:#cc0000;">Custom Validation is coming soon ................ :)</span></strong></p><p> </p>Binod Sumanhttp://www.blogger.com/profile/08999470051156803457noreply@blogger.com0tag:blogger.com,1999:blog-8278744848412372626.post-9846649321760312832009-01-12T09:05:00.000-08:002009-07-06T10:54:25.412-07:00How to start JSF<span style="color:#cc0000;"><strong>Software required </strong><br /></span><strong><br /></strong>1. Jboss-4.0.2<br />2. Eclipse Europa<br />3. JSF jar file (jsf-api.jar, jsf-impl.jar, jstl.jar, commons-beanutils.jar, commons-collections.jar, commons-digester.jar, commons-logging.jar)<br /><br />1. Open Eclipse Europa with workspace C:\jsf_workspace<br />2. New -> project -> web -> Dynamic Web Project<br />3. Enter Project Name JSFDemo (You can give any name)<br />4. Click next -> next -> finish.<br /><br />5. Go to Server Panel and add server, choose JBoss v4.0 -> Next -> Browse -> and choose the location of Jboss 4.0 server in your local driver (in my case C:/jboss4.0.2/jboss-4.0.2).<br /><br />6. Next - > Next -> add your project JSFDemo -> Finish<br />7. Right click on server and start.<br /><br />8. Right click on project -> propertise -> Java build Path -> Libraries -> Add external Jar and all the above metinoed jars.<br /><br />9. Go to JSFDemo -> WebContent -> WEB-INF -> delete every thing from web.xml and put this below code<br /><br /><span style="color:#990000;"><strong>web.xml</strong><br /></span><?xml version="1.0" encoding="UTF-8"?><br /><web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"><br /><br /><display-name>JSFDemo</display-name><br /><br /><servlet><br /><servlet-name>Faces Servlet</servlet-name><br /><servlet-class>javax.faces.webapp.FacesServlet</servlet-class><br /><load-on-startup>1</load-on-startup><br /></servlet><br /><br /><listener><br /><listener-class>com.sun.faces.config.ConfigureListener</listener-class><br /></listener><br /><br /><servlet-mapping><br /><servlet-name>Faces Servlet</servlet-name><br /><url-pattern>*.jsf</url-pattern><br /></servlet-mapping><br /></web-app><br /><br /><span style="color:#990000;">NOTE: Dont forget to add <listener> <listener>tag otherwise you will get below exception<br /></span>javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) 08:44:44,453 ERROR [[/JSFDemo]] StandardWrapper.Throwablejava.lang.NullPointerException at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)<br /><br />10. Unser WebContent create one file with name First.jsp and put this below code<br /><br /><span style="color:#cc0000;">First.jsp<br /></span><%@ page session="false" contentType="text/html;charset=utf-8"%><br /><%@ taglib uri="<a href="http://java.sun.com/jsf/html">http://java.sun.com/jsf/html</a>" prefix="h"%><br /><%@ taglib uri="<a href="http://java.sun.com/jsf/core">http://java.sun.com/jsf/core</a>" prefix="f"%><br /><f:view><br /><html> <title> JSF DEMO BY BINOD </title><body><br /><h:form><h:outputText value="Binod Kumar Suman"> </h:outputText></h:form><br /></body></html><br /></f:view><br /><br /><span style="color:#cc0000;">NOTE: No need to add any tld file in web.xml </span><br /><span style="color:#cc0000;"><br /></span>11. If server is not started, please start the server<br />12. Open internet explorer and type <a href="http://localhost:8080/JSFDemo/First.jsf">http://localhost:8080/JSFDemo/First.jsf</a>,<br /><br />you will get output Binod Kumar Suman<br /><br />Now I am showing that how you will get input from input page then process it and will show in another page. First create one POJO with properties as same as you will have in input form. Second have to use navigation concept means how to navigate one page to other page<br />For both you have to write one config.xml (faces-config.xml), this file must in the same folder where web.xml reside So, I am writing one application, that will accept the student name and city. After click on save record button, other page should display with insert info.<br />Create one entry jsp and one result jsp. But before that we should have one POJO class with student properties.<br />Create StudentVO.java in one new package com.suman<br /><br /><span style="color:#cc0000;">StudentVO.java<br /></span>package com.suman;<br />public class StudentVO {<br />private String name;<br />private int roll;<br />public String getName() {return name; }<br />public void setName(String name) {this.name = name;}<br />public int getRoll() {return roll;}<br />public void setRoll(int roll) { this.roll = roll;}<br />}<br /><br /><span style="color:#cc0000;">Dont forget to put all java class in WEB-INF\classes</span><br /><span style="color:#cc0000;"></span><br /><span style="color:#990000;">studentInfoEntry.jsp<br /></span><%@ taglib uri="<a href="http://java.sun.com/jsf/html">http://java.sun.com/jsf/html</a>" prefix="h" %><br /><%@ taglib uri="<a href="http://java.sun.com/jsf/core">http://java.sun.com/jsf/core</a>" prefix="f" %><br /><f:view><br /><html> <head><title>JSF DEMO BY BINOD</title></head><br /><body> <h:form> <h1><br /><h:outputText value="STUDENT ENTRY FORM"/></h1> <br> <h:outputText value="Please Enter Student Name "/><br /><h:inputText value="#{StudentInfoBean.name}" /> <br><br /><h:outputText value="Please Enter Stdent Roll"/><br /><h:inputText value="#{StudentInfoBean.roll}" /> <br><br /><h:commandButton action="result" value="Save Record" /><br /></h:form> </body></html><br /></f:view><br /><br /><span style="color:#cc0000;">NOTE: Here button action ("result" in this case) must same as <from-outcome> tag value in faces-config.xml<br /></span><br /><span style="color:#cc0000;">result.jsp<br /></span><%@ taglib uri="<a href="http://java.sun.com/jsf/html">http://java.sun.com/jsf/html</a>" prefix="h" %><br /><%@ taglib uri="<a href="http://java.sun.com/jsf/core">http://java.sun.com/jsf/core</a>" prefix="f" %><br /><f:view><br /><html> <head><title>Result Page</title></head><br /><body> <h3><br /><h:outputText value="Student Name :: #{StudentInfoBean.name}" /> <h3><br /><h:outputText value="Roll Number :: #{StudentInfoBean.roll}" /><br /></body> </html><br /></f:view><br /><br /><span style="color:#990000;">faces-config.xml </span><br /><br /><?xml version="1.0"?><br /><faces-config> <managed-bean><br /><managed-bean-name>StudentInfoBean</managed-bean-name><br /><managed-bean-class>com.suman.StudentVO</managed-bean-class><br /><managed-bean-scope>request</managed-bean-scope><br /></managed-bean> <navigation-rule><br /><from-view-id>/studentInfoEntry.jsp</from-view-id><br /><navigation-case><br /><from-outcome>result</from-outcome><br /><to-view-id>/result.jsp</to-view-id><br /></navigation-case><br /></navigation-rule><br /></faces-config><br /><br /><span style="color:#cc0000;">Done every thing, clean the project and restart the server.<br /></span><a href="http://localhost:8080/JSFDemo/studentInfoEntry.jsf">http://localhost:8080/JSFDemo/studentInfoEntry.jsf</a><br />You code should work perfectly .................... :)<br /><br /><strong><span style="color:#990000;">Properties file concept</span></strong><br /><br />Now I am showing that how to use the properties file to avoid all the hard code of button name, input box name.<br /><br />Create one properties file in src folder (after complition should go into web-inf\classes folder) say messages.properties<br />input_header=Student Entry Formprompt_student_name=Enter Student Name :: prompt_roll_number=Enter Student roll Number ::greeting_text=Welcome In IIM Bangalore button_text=Save Record<br />Now studentInfoEntry.jsp<br /><%@ taglib uri="<a href="http://java.sun.com/jsf/html">http://java.sun.com/jsf/html</a>" prefix="h" %><br /><%@ taglib uri="<a href="http://java.sun.com/jsf/core">http://java.sun.com/jsf/core</a>" prefix="f" %><br /><f:loadBundle basename="messages" var="message"/><br /><f:view><br /><html><br /><head><br /><title>JSF DEMO BY BINOD</title><br /></head><br /><body> <h:form> <h1><br /><h:outputText value="#{message.input_header}"/></h1> <br> <h:outputText value="#{message.prompt_student_name}"/><br /><h:inputText value="#{StudentInfoBean.name}" /> <br><br /><h:outputText value="#{message.prompt_roll_number}"/><br /><h:inputText value="#{StudentInfoBean.roll}" /> <br><br /><h:commandButton action="result" value="#{message.button_text}" /> </h:form> </body><br /></html><br /></f:view><br /><br /><span style="color:#990000;">Dont forget to add <f:loadBundle basename="messages" var="message"/> in all jsp file, where you are using properties value. Now see that how to put the validation in input values.<br /></span><br /><span style="color:#cc0000;"></span><strong><span style="color:#990000;">Wait for a good tutorial on JBOSS SEAM .................... :)<br /></span></strong>Binod Sumanhttp://www.blogger.com/profile/08999470051156803457noreply@blogger.com2