| Author |
Packaging resources in a custom JSF component.
|
Yogesh Gnanapraksam
Ranch Hand
Joined: Dec 17, 2009
Posts: 133
|
|
Hi,
I am building new custom JSF component using the apache myfaces builder plugin.
My component needs some resources like images and javascript for its complete functionality. I am not sure how to package these resources along with my component.
I was able to achieve this when I developed my component without using the plugin ( I had a phase listener which wrote the contents of the file to the response stream when required.) .
I am not sure how to achieve the same when I use the myfaces builder plugin.
Regards
Yogi
|
 |
Leonardo Uribe
Greenhorn
Joined: Jun 25, 2011
Posts: 4
|
|
First check MyFaces Builder Plugin Site documentation for details. In theory myfaces builder plugin helps you to minimize the number of files you need to modify to create JSF components, so there is nothing special you need to make it work.
For more information you can suscribe to myfaces users and dev mailing lists and ask there directly.
|
 |
Yogesh Gnanapraksam
Ranch Hand
Joined: Dec 17, 2009
Posts: 133
|
|
Thanks Leonardo.
This blog JSF Custom Component Blog helped me. I did use Myfaces builder plugin but for resource packaging I used the approach mentioned in that blog.
Regards
Yogi
|
 |
Rohit Dhingraaa
Greenhorn
Joined: Jul 10, 2011
Posts: 4
|
|
Awesome Blog
http://technology.amis.nl/blog/6047/creating-a-custom-jsf-12-component-with-facets-resource-handling-events-and-listeners-valueexpression-and-methodexpression-attributes
for the creating our own tags in JSF
|
 |
 |
|
|
subject: Packaging resources in a custom JSF component.
|
|
|