0 Replies Latest reply on Mar 23, 2007 12:52 PM by Andrew

    TreeRendrer cannot be extended?

    Andrew Apprentice

      I have attempted to extend TreeRenderer to work-around bug http://jira.jboss.com/jira/browse/RF-34 and in doing so I get an exception (below) as a result of the getResource method. This method uses the class loader for the current class, not the class loader for the TreeRenderer class. As a result, it cannot find the resources as it is looking in the wrong place.

      Is there a way around this without having to copy all the resources over?

      org.ajax4jsf.framework.resource.ResourceNotFoundException: Static resource not found for path css/tree.xcss
       at org.ajax4jsf.framework.resource.ResourceBuilderImpl.createStaticResource(ResourceBuilderImpl.java:427)
       at org.ajax4jsf.framework.resource.ResourceBuilderImpl.createResource(ResourceBuilderImpl.java:256)
       at org.ajax4jsf.framework.renderer.RendererBase.getResource(RendererBase.java:131)
       at org.richfaces.renderkit.html.TreeRenderer.<init>(TreeRenderer.java:59)
       at test.TreeRendererEx.<init>(TreeRendererEx.java:22)