See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
News »Browse Articles » JSF 2.0, JPA, GlassFish and MySQL
0
Vote Vote

JSF 2.0, JPA, GlassFish and MySQL

Views 0 Views    Comments 0 Comments    Share Share    Posted 03-08-2009  
This Pet Catalog app explains a web application that uses JSF 2.0, JPA, GlassFish and MySQL. I took this example GlassFish and MySQL, Part 2: Building a CRUD Web Application With Data Persistence and modified it to use some of the new features JSF 2.0.

Download the sample code
The image below shows the Catalog Listing page, which allows a user to page through a list of items in a store.

JSF 2.0 Facelets XHTML instead of JSP
For JSF 2.0, Facelets XHTML is the preferred way to declare JSF Web Pages. JSP is supported for backwards compatibility, but not all JSF 2.0 features will be available for views using JSP as their page declaration language. JSF 2.0 Facelets has some nice features like templating (similar in functionality to Tiles) and composite components, which I`m not going to discuss here but you can read about that in this article: http://www.ibm.com/developerworks/java/library/j-jsf2fu2/index.html and in this Tech Tip Composite UI Components in JSF 2.0.

The Catalog application`s resources

JSF 2.0 standardizes how to define web resources. Resources are any artifacts that a component may need in order to be rendered properly -- images, CSS, or JavaScript files. With JSF 2.0 you put resources in a resources directory or a subdirectory.

Source:
http://java.dzone.com/articles/jsf-20-jpa-glassfish-and-mysql
0
Vote  Vote
Enter your comment:
No Comments For This News

Search News

What's the News?

Post a link to something interesting from another site, or submit your own original writing for the Java community to read.

Most Popular News

Most Recent User Submitted News