"Hello PrimeFaces World !" deployed on JBoss 7.1

2 comments
In my previous post I explained how to install and configure an environment to start working on PrimeFaces project. Today I would like to show you how to create a simple JSF page and deploy it to JBoss 7.1 AS from Eclipse Indigo. After reading this part you will understand basics of JSF PrimeFaces and you will have the knowledge of how to adjust your web.xml file to run JSF servlets. In the next part of this series we will go through designing a domain model, implementing Hibernate entities and building JSF interfaces of a TODO list web application. I decided to create a TODO list as an example of PrimeFaces, because it's easy to understand. You can focus rather on JSF, Hibernate and ManageBeans than on complicated business logic of the example.

Prepare your JSF PrimeFaces project for Eclipse Indigo and JBoss AS7.1.1

5 comments
In my opinion, developing PrimeFaces application in Eclipse is the most natural way to do it, if you plan to deploy your webapp on JBoss Application Server. The easiest way to start developing web applications for JBoss in Eclipse is by using JBoss Tools Plugin. I will describe how to install it. Here is a list of things which you need to do, in order to get your IDE work and start a new project:

  1. Choose and install Eclipse version of your choice. In my case it is Eclipse Indigo Sr2 for Java EE developers.

  2. Download and install JBoss Tools 3.3.

  3. Download and define JBoss server instance in Eclipse IDE for JBoss AS 7.1.1.

  4. Create new project Dynamic Web Project. Since I want to place my web project in EAR file, I will define EAR project first.

  5. Download and add primefaces-3.5.jar to your project lib directory.

    From Zero to PrimeFaces Hero on JBoss 7.1 with Hibernate, MySQL, Eclipse Indigo and JBoss Tools

    1 comments
    From Zero to PrimeFaces Hero is a series of articles, in which I indented to explain how to create a full CRUD webapp in PrimeFaces, Hibernate, MySQL, Eclipse Indigo and JBoss Tools. I will describe the way of building a simple CRUD application, which will be deployed on JBoss 7.1. The full path of builiding an application will be described as follows:

    • Configuring IDE. In this case, it will be Eclipse Indigo,

    • Designing and implementing data model in Hibernate,

    • Synchronizing MySQL scheme with Hibernate Entities,

    • Building ManageBeans for business logic and integrating it with data model layer,

    • Building JSF interfaces and integrating it with ManageBeans,

    • Artifacts deployment on JBoss 7.1 Application Server.

    After reading this series you will be able to build a full-featured CRUD JSF application backed by MySQL database with Hibernate mapping. Stay tuned for the next article on this topic.