Monthly Archives: October 2008

Don’t Worry Everyone Sucks At Photoshop

Posted by & filed under Uncategorized.

My wife found these wonderful Photoshop “tutorials” online at youtube. The instructor, Donnie, has some serious issues but is very funny and very entertaining. I found myself watching all 18 episodes and laughing harder than I have in a while. View it here at http://www.youtube.com/watch?v=U_X5uR7VC4M

Using Hibernate Constraint Annotations with Seam/JSF

Posted by & filed under Uncategorized.

Most if not all the Hibernate validators have a message attribute that can use an expression representing a key in a message bundle. The message bundle is defined and tied to the JSF Messages feature thru Seam configuration in the components.xml configuration. <factory name=”m” value=”#{messages}”/> <core:resource-loader> <core:bundle-names> <value>/WEB-INF/messages/system</value> <value>/WEB-INF/messages/application</value> </core:bundle-names> </core:resource-loader> So, the example below […]

Using a List of Custom Objects in JSF/Seam

Posted by & filed under Uncategorized.

Whether you are using radio buttons, check boxes or selects,  at some point you probably have a collection of custom objects that you want to supply to that form control.  JSF by itself knows about SelectItem objects to populate the list and only really knows about Strings when a value is selected and submitted to […]

Packaging Facelets Templates in JAR Files

Posted by & filed under Uncategorized.

In Facelets, the template attribute of the composition tag understands URI references including the jar protocol.  For instance, say I have a layout template called jlayout.xhtml inside a jar file called facelets-t.jar.  The reference can be absolute: template=”jar:file:///C:/j2ee/home/applications/myapp/WEB-INF/lib/facelets-t.jar!/jlayout.xhtml” Or, relative to the working directory where the JVM was invoked.  In the case of a j2ee […]