aspose file tools
The moose likes JSF and the fly likes Packaging resources in a custom JSF component. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Packaging resources in a custom JSF component." Watch "Packaging resources in a custom JSF component." New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Packaging resources in a custom JSF component.
 
Similar Threads
Myfaces
NetBeans 6 vs. JBoss Developer vs. Eclipse
Sorting/Pagination in large datasets
JSF Table - Weekly Schedule
AJAX Request