JSF 2.0 Refcard available
DZone just published the
href="http://refcardz.dzone.com/refcardz/javaserver-faces-20">JSF 2.0 version
of my JSF refcard. It provides updated summaries of the tags and attributes
needed for JSF programming, along with a summary of the JSF expression language
and a list of code snippets for common operations.
If you haven't done so, give JSF 2.0 a try. It is a lot more fun than JSF
1.0. Here is a quick recipe.
- Install Glassfish v3. It comes with JSF 2.0
- Run these commands in an empty directory
svn export https://kenai.com/svn/corejsf~subversion/ch01
svn export https://kenai.com/svn/corejsf~subversion/build.xml
svn export https://kenai.com/svn/corejsf~subversion/build.properties
export GLASSFISH3_HOME=/path/to/glassfish-v3/glassfish/
ant -Dapp=ch01/login - Start Glassfish and point your browser to
http://localhost:8080/login - Introduce a typo in index.xhtml and run
antagain. You'll
get a friendly error message, not the stack trace from hell. Hooray!
Now look at the source. Note these points:
- A blessedly empty faces-config.xml
@ManagedBean@Statelessannotations in the bean
class- Facelets syntax in the web pages
If you are stuck with JSF 1.x, the
href="http://refcardz.dzone.com/refcardz/javaserver-faces">old refcard is
still available.
- Login or register to post comments
- Printer-friendly version
- cayhorstmann's blog
- 2421 reads





