[ http://issues.apache.org/jira/browse/MYFACES-473?page=all ]
Mathias Broekelmann closed MYFACES-473:
---------------------------------------
Fix Version: Nightly
Resolution: Fixed
AddResource.registerAccess(Class) added. It must be called before adding a
resource.
Custom components should define a ServletContextListener in their tld file
which calls the registerAccess method to work in clustered environments.
> cannot use AddResource class to add resources of own components
> ---------------------------------------------------------------
>
> Key: MYFACES-473
> URL: http://issues.apache.org/jira/browse/MYFACES-473
> Project: MyFaces
> Type: Improvement
> Components: Tomahawk
> Versions: 1.1.0
> Reporter: Csaba Sebastian
> Fix For: Nightly
>
> I wrote a new component based on MyFaces, and this component has an external
> JS resource. While rendering, I want to add the reference of this resource by
> the AddResource class: I tried simply to call
> AddResource.addJavaScriptToHeader(...). But unfortunately this function can
> handle only the resources of the MyFaces components, because of the line 203:
> if( ! name.startsWith(COMPONENTS_PACKAGE) ){ log.error( ....
> If I write my own AddResource class (functions like yours), the
> ExtensionsFilter still references the old AddReource class (between lines 106
> and 132), so I need to implement a new ExtensionFilter to handle my resources
> well.
> This solution of my problem works, but I won't use it. I need a more
> structured solution. What shall I do to use the original AddResource class?
> And what are these ?security reasons", why the restriction to the package
> name is required?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira