söndag 25 januari 2009

JSF and Seam-notes

Seam and JavaServer Faces(JSF)

MVC-framework used: MyFaces (An implementation of JSF)

Struts, Tapestry, etc all evolved from shortcomings of JSP.
JSF evolved from shortcomings of Servlet.

Other MVC:s
Tapestry - Pages are iPage, not POJO
Spring MVC - not as robust as the other 2
Struts - 1.x popular, but 2.x not widely used
Is seam now widely used?

JSF is a JSR-standard part of JCP

Seam is the glue that gets rid of a lot of xml and backing beans, which makes development faster, code less, maintenance easier.
In effect, the presentation tier talks directly to the business tier.

Sample code from the JBOSS Seam book can be found at http://www.integrallis.com

For components that are missing in MyFaces, like date and calendar, check tomahawk at http://myfaces.apache.org/dowload.html

xml-files
  • web.xml is the standard web deployment descriptor for any Java EE web container. More on page 53.
  • faces-config.xml is the JSF-specific configuration file. Parsed by the StartupServletContextListener specified in web.xml. Specifies backing beans, navigation rules, customized components and renderers used for those components.
  • components.xml

Inga kommentarer: