Thanks a lot!

regards,

Martin

On 1/16/08, David Delbecq <[EMAIL PROTECTED]> wrote:
> http://wiki.apache.org/myfaces/External_Resources
> :)
> En l'instant précis du 15/01/08 21:33, Martin Marinschek s'exprimait en
> ces termes:
> > Hi David,
> >
> > would you be willing - if time permits - to post a short outline of your
> > solution on our Wiki?
> >
> > Thanks very much in advance!
> >
> > regards,
> >
> > Martin
> >
> > On Jan 12, 2008 2:33 PM, David Delbecq <[EMAIL PROTECTED]> wrote:
> >
> >
> >> Did here, nothing difficult or fancy about it. Just use the
> >> addResourcesFactory.getInstance(...) to get an instance of AddResource.
> >> Then use on it, methods with signature addXXX(...., ResourceHandler
> >> resourceHandler);
> >> You just have to code your own resourceHandler class. Main job of this
> >> class is to split and check the ressources requested. It then returns a
> >> class of type org.apache.myfaces.renderkit.html.util.ResourceLoader
> >> which serve the requested content. Overall here, we had just a few lines
> >> of code.
> >>
> >> Another more stupid solution is to indeed put your resources in a
> >> subpackage of org.apache.myfaces.custom :)
> >>
> >> [EMAIL PROTECTED] a écrit :
> >>
> >>> Hi,
> >>>
> >>>
> >>>
> >>> I've written a custom component that requires some Javascript. I have
> >>> the js in an external file but I was hoping to have it included in the
> >>> tag, kind of like the myfaces tags do. I tried using the AddResource
> >>> class, basically looked at the myfaces source and tried to do the same
> >>> thing, but it fails on the component validation. It checks if the
> >>> package starts with org.apache.myfaces.custom… or something like that
>
>
> --
> http://www.devlog.be (a belgian developer's logs)
>
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to