On Fri, 2006-01-13 at 15:51 +0100, Juergen Melzer wrote:
> Hi,
> 
> I want to use the mechanism like myFaces to load javascript resources.
> I use the class org.apache.myfaces.component.html.util.AddResource.
> But when I want to use it I found in 1.1.1:
> "For security reasons, only components member of the 
> org.apache.myfaces.custom are allowed to add ressources"
> In 1.1.x:
> "expected a myfaces custom component class in package 
> org.apache.myfaces.custom"
> 
> Is there is a reason to do this?

The SVN current version of AddResource allows non-faces classes to serve
resources from jars. However this functionality is NOT available in the
1.1.1 release.

There are some steps needed to enable non-faces code to use AddResource;
I haven't done this myself so I'm not entirely sure but I think it
involves writing your own (trivial) ResourceHandler class.

Regards,

Simon

Reply via email to