Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to render images in JSF using myFaces

 
Romi Dave
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I use myfaces and tomahawk for JSF implementation in our application. I recently upgraded the myface jar from 1.1.3 version to myface-api-1.1.5.jar and tomahawk-1.1.3.jar to tomahawk-1.1.6.jar . The application works fine but the tree structure do not display the images of + & - signs next to the folder to expand/collapse the node.
Their are no errors in the logs.
I have following entry in my web.xml:
<context-param>
<param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name>
<param-value>/faces/extensionResource</param-value>
</context-param>

<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>

On the web page i tried looking for the path to the image and it is:

"http://localhost:8080/MyApplication/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12324010/tree2.HtmlTreeRenderer/images/nav-plus-line-middle.gif"
So i believe it is an issue with rendering but do not know how to resolve it.
I would appreciate if someone can please help me through this problem.

Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic