Skip to main content

Confused with the documentation provided!

2 replies [Last post]
jeremyspouken
Offline
Joined: 2006-08-24
Points: 0

I have read all the documentation about JMaki and I created a few widgets running on TomCat 5 and JSF. They all work great without any problems at all all using dojo.

After I finished my widgets I began cleaning up my application and erased the dojo.3.1.jar and a few other that i didnt need and only left the ajax-wrapper-comp.jar untouched.

AFTER I DELETE THE dojo.3.1.jar THE APPLICATION STOPPED WORKING AND FIREBUG GAVE ME AN ERROR THAT dojo is not defined.

I read that the config.json file was the configuration file for the types, well while reading the file I found that that for dojo its pointing to a directory that does no exist in the actual default installation.

{"id": "dojo",
"libs": ["/resources/libs/dojo/version.3.1/dojo.js"],
"preload": "djConfig = { parseWidgets: false, searchIds: [] };"
},

The default installation has a dojo folder under the resources folder but without the version.3.1:

/resources/libs/dojo/dojo.js

I changed it to /resources/libs/dojo/version.3.1/dojo.js and it still wont work unless I add the dojo.3.1.jar to the build path.

Now that confuses me.

What if I wanted to add another framework like Rico?
Using the documentation provided it does not work I can edit the config.json and change the types directory and it will fail if it does not have the jar for that framework.

What I'm I doing wrong here?

Message was edited by: jeremyspouken

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi Jeremy,

In jMaki .4 Dojo is being loaded from the classpath from the dojo.3.1.jar. Dojo is over 500 files and keeping them inside the Jar file and using a servlet to access them via the classpath helped with deployment as the dojo.3.1.jar is only one file.

Would you rather have the expanded dojo files?

Basically this can be avoided by removing the servlet mapping to /resources/libs from the web.xml file and copy the expanded dojo files, as well as the yahoo, and scriptaculous libraries under /resources/libs.

The same would be true with Rico. To use it simply copy it to the /resources/libs and add a mapping as you describe.

Any one else out there want to see Rico in jMaki?

jeremyspouken
Offline
Joined: 2006-08-24
Points: 0

Hi Murray,

Thanks for the answer. This is great news now I feel I can own this baby :P I'm going to try to add the Rico library cause I'm in desperate need of the livegrid. I noticed that yahoo mail is using a similar widget like the livegrid in it's new webmail client.

Is there a place where people can post their own widgets and contribute?