First of all sorry for having been absent for a while
due to health reasons. I will try to be more present
in the immediate future.
The best way, given from what I can remember about the namespace issue
is to simply extend the dojo namespace.
This however is probably not possible in your case unless you are
willing to roll your own myfaces.
What we did was to bend the resource loading mechanisms
myfaces already had in place to our own namespace within
the myfaces structure and adjusted our own dojo based
component classes to that namespace (check the code for that
it was more or less a trial and error on my side til things
started to work, due to lack of documentation on this issue back then).
I am not entirely sure since I do not know the current status
of the resource loading if stuff like that works from a different
jar as well, you can give it a try however.
But as I said it is probably the easiest to just add your
stuff to the dojo namespace, this is the recommended
way by the dojo people for now until the entire
namespacing issue is more or less fixed (rolling
your own namespaces is not fully documented
and not very well working to my knowledge)
I have not checked out the current dojo version in this regard
if the entire namespacing issue has been fixed.
Werner
Rogerio Pereira schrieb:
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?