• Post Reply Bookmark Topic Watch Topic
  • New Topic

Packaging resources in a custom JSF component.  RSS feed

 
Yogesh Gnanapraksam
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!