DZone just published the 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.
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
http://localhost:8080/login
ant
again. You'll
get a friendly error message, not the stack trace from hell. Hooray!Now look at the source. Note these points:
@ManagedBean
@Stateless
annotations in the bean
class If you are stuck with JSF 1.x, the old refcard is still available.