JSF Maven Hello World

JSF Maven Hello World

To start with JSF framework it’s important to understand how to set up simple project which will print some value on web page then slowly move on other topic. In this demo you will see how to set JSF project with one web page where we will invoke managed bean on server side to retrieve data and print its out put on web page.

Tools needed:

  • Eclipse Luna (You can use any version) and install JBoss Tools plug-in into it so that you can create maven project directly from Eclipse.
  • Tomcat server (I will use version 7)


  • Create maven project name: JSFMavenHelloWorld in eclipse if you are not sure how to create it please follow this tutorial. Below is final project structure:

JSF Maven Hello World

  • pom.xml:

  • web.xml:

  • JSFHelloWorld.xhtml:

  • Managed bean JSFHelloWorld.java:

JSF Maven Hello World

JSF Maven Hello World

  • For more information visit JSF documentation here

download  Download Project:  JSFMavenHelloWorld

Leave a Reply

Your email address will not be published. Required fields are marked *

I am not Robot *