Creating a JSF project
Let us create a JSF project to use some of the code presented here with Eclipse Indigo JEE and as server we will use the Tomcat7. After you download it add the Tomcat in the Eclipse in the Servers tab.
For Eclipse there is a plugin named JBoss Tools that helps in the JSF software development. The JBoss tools plugin provides to the developer an efficient auto complete in the xhtml pages, xhtml page preview without the need of start the server and other functionalities.
To install the JBoss tools you just need to access the menu Help | Market Place > Search. A dialog will open with a field named “Find”; type in the “Find” field: “JBoss Tools”. Click “Go” > JBoss Tools Indigo > Install. In the opened window select the following options:
- Context and Dependency Injection Tools
- JBoss Tools JSF
- Project Examples. This option will give you a lot of created projects, but to this post this option is not required.
Let us create a new Web Project?
Go to the menu File | New > Dynamic Web Project. Name your project as “ProjectJSF”. In the “Configuration” field choose the option: “JavaServer Faces 2.0 Project”. The next step is to click on “Next” and “Next” again in the new window. Click on the option “Generate web.xml deployment descriptor” to indicate to Eclipse that the web.xml file must be created. Click on “Next” and in the next screen select “Disable Library Configuration” in the “JSF Implementation Library”. To end the creation, just click in “Finish”.
The JSF is a specification that defines the framework behavior through interfaces and rules. There are several JSF implementations that fulfill the JSF specification requirements. We can find some implementations like: Mojarra, MyFaces. Our project will need a JSF implementation to work correctly; we will use the Mojarra implementation that is the Oracle JSF implementation.
Another library is required, that is the JSTL (JavaServer Pages Standard Tag Library). This tag has some basic utilities like: value format, loops and commands like if/else.
To download the Mojarra click here; to download the JSTL click here. After the download of the libraries are finished, just put them inside the folder: “ProjectJSF/WebContent/WEB-INF/lib”.


Really good material. Thanks very much…
Tugrul, thanks for the support! =D
Thank you very much !!!
You’re welcome [=
This Post is Awesome. Followed every things and applied on my project.
Hello surajtamang,
Thank you for your support.
very usefull material, Keep up the good work
Hello, John
Thanks for the support. [=
Really cool material! I agree with Tim. If this could be distributed in pdf format, you will become a little more famous. :) Thanks, good job!
Hello Thabita, good morning.
I will try to create the PDF, but I will not promise it! =D
Thanks for the support. [=
This is awesome! Could you post the entire article as a PDF for download??
Hello Tim.
I will try, I am really short of time. =/
Thanks for your support. [=