Ok for sandbox, but what about when i have a dojo enabled component (collapsiblePanel) and i need to create a new dojo module for my own dojo class and package this dojo class in my own jar. I couldn't find a way to pass the location of the resouce inside my jar.

This thing will be for a personal project and can be donated to myfaces in the future, but not now. So i need find a way to call DojoUtils.addNamespace and pass the location of my dojo class packaged as resource in my own jar?

2006/8/16, Rogerio Pereira <[EMAIL PROTECTED]>:
Ok for sandbox, but what about when i have a dojo enabled component (collapsiblePanel) and i need to create a new dojo module for my own dojo class and package this dojo class in my own jar. I couldn't find a way to pass the location of the resouce inside my jar.

This thing will be for a personal project and can be donated to myfaces in the future, but not now. So i need find a way to call DojoUtils.addNamespace and pass the location of my dojo class packaged as resource in my own jar.


2006/8/16, Gerald Müllan < [EMAIL PROTECTED]>:
Yes, werner has written the dojo foundation stuff in sandbox environment.

If you add the js file like i suggested, it is automatically packaged
into the sandbox jar.
Just test it; Try a mvn install with maven (only in sandbox dir), and
have a look at the jar.

The js. file is than automatically loaded into the browser; and thus
dojo should be able to understand that file.

Does it work now?

cheers,

Gerald

On 8/16/06, Rogerio Pereira < [EMAIL PROTECTED]> wrote:
> Is Werner that created the dojo support for myfaces? DojoUtils.addNamespace
> seens the right way, but my only problem is related with location parameter,
> how can i pass the resource folder inside my component jar to this method.
>
> 2006/8/16, Rogerio Pereira < [EMAIL PROTECTED]>:
> >
> > Hmmmm, with DojoUtils.addNamespace i can define my own namespace and then
> point this namespace to the location that you mentioned for my component
> dojo class. Thx Gerald.
> >
> >
> > 2006/8/16, Gerald Müllan < [EMAIL PROTECTED]>:
> >
> > > Hi,
> > >
> > > if you contribute the component, it will first go to sandbox.
> > >
> > > So put your custom .js stuff where the other js files for the
> > > components are located; in the resources dir:
> > >
> > >
> tomahawk\sandbox\core\src\main\resources\org\apache\myfaces\custom\yourComponentDir
> > >
> > > You can load the js resource than easily via the _javascript_ location
> > > and the extensions filter.
> > > See other renderers as an example, e.g. TableSuggestAjaxRenderer.
> > >
> > > cheers,
> > >
> > > Gerald
> > >
> > > On 8/16/06, Rogerio Pereira < [EMAIL PROTECTED] > wrote:
> > > > Hi guys!
> > > >
> > > > I need create a new dojo class that will be use by my component, how
> can i
> > > > access this class if the same will be packaged in my component jar, or
> i
> > > > must package in tomahawk-sandbox.jar ?
> > > >
> > > >  --
> > > > Yours truly (Atenciosamente),
> > > >
> > > > Rogério (_rogerio_)
> > >
> > >
> > > --
> > > Gerald Müllan
> > > Schelleingasse 2/11
> > > 1040 Vienna, Austria
> > > 0043 699 11772506
> > > [EMAIL PROTECTED]
> > >
> >
> >
> >
> >
> > --
> >
> > Yours truly (Atenciosamente),
> >
> > Rogério (_rogerio_)
>
>
>
> --
>
> Yours truly (Atenciosamente),
>
> Rogério (_rogerio_)


--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]



--

Yours truly (Atenciosamente),

Rogério (_rogerio_)



--
Yours truly (Atenciosamente),

Rogério (_rogerio_)

Reply via email to