JSF(Java Server Faces) getting started with Eclipse IDE.
in order make make your first application in JSF. follow these steps:
required library :
javax.faces.jar file which is 2MB approximately.
Click on new project:
choose Dynamic Web Project:
like this:
in order make make your first application in JSF. follow these steps:
required library :
javax.faces.jar file which is 2MB approximately.
Click on new project:
choose Dynamic Web Project:
like this:
I'm using Apache Tomcat 7.0 web server thats why i have chosen Apache Tomcat in the target Runtime.
remove template="" from <ui:composition> tag. like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<ui:composition>
<ui:define name="header">
Add your header here or delete to use the default
</ui:define>
<ui:define name="content">
Add your content here or delete to use the default
</ui:define>
<ui:define name="footer">
Add your footer here or delete to use the default
</ui:define>
</ui:composition>
</html>
Now Right click on your project and choose run on server. and delopy your project on server and see the output. please post your comments and inform me about your problems thanks alot :)












