Commenting in JSF 2.0 looks just like commenting in HTML, so you need to write something like this: <!-- this is the comment -->. By default, Facelets xml parser will include your comment in a generated HTML file, so for a file like the one below:
Facelets xml parser would generate the following output:
If you don't want to include comments in a generated HTML file, you need to add the following context-param node to your web.xml file:
With javax.faces.FACELETS_SKIP_COMMENTS, the generated file looks like that:
Showing posts with label J2EE Tutorial. Show all posts
Showing posts with label J2EE Tutorial. Show all posts
Designing a domain model for a TODO list application
As I promised in my previous article this one will be about designing a domain model for a TODO list application. Then, We will implement this domain model in Hibernate, make Primefaces user interface, configure MySQL database and deploy this application on JBoss 7.1 AS. The first thing we need to do is to define requirements for our application. Then we will go through designing a database diagram and UML class diagram for application models. To create UML diagrams I am going to use ArgoUML open source modeling tool which runs on Java platform. In order to design a database diagram I am going to use data modeling functionality included in MySQL Workbench.
Posted by
Unknown
Saturday, March 2, 2013
1:00 PM
Prepare your JSF PrimeFaces project for Eclipse Indigo and JBoss AS7.1.1
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:
- Choose and install Eclipse version of your choice. In my case it is Eclipse Indigo Sr2 for Java EE developers.
- Download and install JBoss Tools 3.3.
- Download and define JBoss server instance in Eclipse IDE for JBoss AS 7.1.1.
- Create new project Dynamic Web Project. Since I want to place my web project in EAR file, I will define EAR project first.
- Download and add primefaces-3.5.jar to your project lib directory.
Posted by
Unknown
Tuesday, February 19, 2013
2:05 PM
From Zero to PrimeFaces Hero on JBoss 7.1 with Hibernate, MySQL, Eclipse Indigo and JBoss Tools
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:
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.
- 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.
Posted by
Unknown
Sunday, February 17, 2013
10:34 AM
Labels:
business logic,
CRUD,
data model,
Eclipse Indigo,
Hibernate,
J2EE Tutorial,
JBoss 7.1,
JSF,
JSF Tutorial,
model layer,
MySQL,
PrimeFaces,
software,
technology,
Tutorials,
webapp

Subscribe to:
Posts (Atom)