
September 9th, 2008 by

Lincoln Baxter III
Tutorial – Step By Step
If you’ve learned to use JSF Facelets to create on-the-fly, simple components using XHTML, then you probably have a whole slew of custom components that need to be copied between various projects, and can be somewhat painful to keep up to date. You may have tried to move them into a jar file, but Facelets can’t find them there (without some help from us.)
UPDATE – 09/15/2010: In JSF2, this process is no longer required. Simply use JSF2 relocatable resources: Any file placed under the /WebApp/resources directory, and any files placed in the jar:/META-INF/resources directories can be served directly using the JSF2 notation:
#{resource['ocpsoft-jsf2-templates/liquid-blue-2col:images/bodybg.jpg']} |
#{resource['ocpsoft-jsf2-templates/liquid-blue-2col:images/bodybg.jpg']}
Which targets the following resource:
[META-INF or WebContent]/resources/ocpsoft-jsf2-templates/liquid-blue-2col/images/bodybg.jpg |
[META-INF or WebContent]/resources/ocpsoft-jsf2-templates/liquid-blue-2col/images/bodybg.jpg

August 24th, 2008 by

Lincoln Baxter III
A4J:Form is missing several specified ajax functions
(
View this issue on the JBoss tracker here. Keep reading, there is a fix… download fix)
The issue:
When using the a4j:form component, the
data=”#{managedBean.property}” the properties defined in the
data element list are supposed to be available after the a4j event in the
data JavaScript variable; however, with <a4j:form> the attribute is not correctly causing the JavaScript
data variable to be populated.