File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Myfaces component is not rendered properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Myfaces component is not rendered properly" Watch "Myfaces component is not rendered properly" New topic
Author

Myfaces component is not rendered properly

Wim Drapier
Greenhorn

Joined: Jul 20, 2005
Posts: 11
I'm using myfaces in my J2EE(EJB3) project but when the .ear file is deployed and my tree2 component is rendered it is missing the gif's that make up the lines of the tree component. The needed jars are in the right place.

Do I have to change or add something in my faces-config.xml?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Make sure you have something similar to the following in your web.xml.



Among other things, the extension filter allows you to use resources (js, images, css, etc) that are available in the MyFaces jar files associated with components that need access to these resources.

The other thing to check is that you have the image icons for the tree. I *think* that if you run the myfaces demo of the tree2 you'll see in an images folder and tree folder with the tree icons.


GenRocket - Experts at Building Test Data
Wim Drapier
Greenhorn

Joined: Jul 20, 2005
Posts: 11
Thanks everything worked by adding the extensionsfilter in the web.xml, I left it out because I'm not using the fileupload extension and this was not a good choice.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Myfaces component is not rendered properly
 
Similar Threads
Showing ' No Records available' message in a h:dataTable
sort dataTable & inputText
Which JSF component to use?
JSF, Facelets & Recursion
MyFaces - refresh and component disappears