[jboss-user] [JBoss Seam] - Resource loading in Seam - ideas
petemuir
do-not-reply at jboss.com
Mon Feb 5 16:57:05 EST 2007
There have been a few threads discussing resource loading recently, and I thought it would be worth summarising them (to the best of my ability/memory here). Please contribute your ideas and requests!
The often asked questions normally fall into one of two camps:
* How can I provide access to a resource that I'm bundling into a component jar file (for example the s:selectDate component currently requires you add the css to your css file)
| * How can I provide access to a resource that isn't available as a file on the disk (often loaded from a persistence context, but possibly created on the fly)
There are some solutions already existing:
* Norman has proposed using https://weblets.dev.java.net/ to solve problem 1 - perhaps with some work to 'seamify' the configuration
| * There is a dynamicImage (http://jroller.com/page/pmuir?entry=dynamicimagecomponent_for_jsf) component for displaying images loaded from the database
| * There is the possibility of using a generic 'Resource' class, which can be extended to supply the actual data, and it's render method called to render the data
| * There is the ajax4jsf media component (https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/entire.html#d0e3589)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4011608#4011608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4011608
More information about the jboss-user
mailing list