Skip to main content

jMaki doesnt work with woodstock

4 replies [Last post]
karthikbalait
Offline
Joined: 2007-12-05
Points: 0

woodstock components to work properly they need the instead of normal tag, so when i did so jMaki components in the page are not getting rendered.
Below is the error being displayed in the web page

"Unable to find widget constructor for jmaki.widgets.dojo.dropdowndatepicker.Widget."

Is there any way out such that both woodstock and jMaki worktogether

Thanks & Regards,
Karthik Bala

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,

This error is caused generally when the component.js containing the JavaScript for the component is not located.

Are you placing the JavaScript resources for the jmaki.widgets.dojo.dropdowndatepicker in a directory under /resources directory in your web application?

Alternatively you can use a jar file in the /WEB-INF/lib directory. I can help you with this if you can confirm the question above.

-Greg

karthikbalait
Offline
Joined: 2007-12-05
Points: 0

Hi Greg,

It works perfectly if I use normal tag but if i change that to the problem occurs.

I have traced out the problem using firebug that if i use djd43.js is looking for files at http://localhost:port/project/theme/META-INF/dojo/src/

but if i use normal head tag djd43.js is looking for files at http://localhost:port/project/resources/dojo/resources/libs/dojo/v0.4.3/...

I am using the following configuration in web.xml which i doubt is causing the problem


ThemeServlet
com.sun.webui.theme.ThemeServlet
3


ThemeServlet
/theme/*

Woodstock also uses dojo, so does it overrides the jmaki dojo?

Thanks & Regards,
Karthik Bala

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi Karthik,

The older versions of Woodstock used a version of Dojo and it appears to have the same namespace so the first one that is picked up in the page would win.

The latest Woodstock widgets use a different namespced version of dojo which I beleive will not conflict with the namespaced version jMaki is using.

Which version of the woodstock widgets are you using?

karthikbalait
Offline
Joined: 2007-12-05
Points: 0

jmaki works perfectly with the latest version of woodstock, sorry i was using the very old version of woodstock, thank you greg

Regards,
Karthik Bala