Hello all, I am in the process of upgrading my webapp from Appfuse 2.0 M5 to 2.0 and I have been following the migration guides. Things are starting to return to normal, but I am experiencing an issue with DatePicker that I have no idea how to fix. The issue appears with both FF2 and IE7.
Without making any changes to my code (from 2.0 M5/Tapestry 4.0), the calendar icon appears but Firebug reports "dojo is not defined" at "dojo.addOnLoad( function (e) ." Clicking on the calendar icon throws a "calendar_name has no properties" error. Searching through the web, I find a site stating that dojo needs to be loaded before script.aculo.us and prototype. Problem is, dojo.js is loaded within the body of the page whereas script.aculo.us and prototype are loaded within the header. I've manually removed the scriptaculous.js and prototype.js declarations from the page, but the DatePicker still does not work. I then decide to try something different. Tapestry 4.1 integrates dojo which includes the component DropdownDatePicker. This guide shows how it should be implemented: http://www.devshed.com/c/a/Apache/The-DatePicker-and-Shell-Components-of-Apache-Tapestry/ New problem: From the above link, @Shell component overrides the DTD declarations and header info used by Appfuse. I found this post from Matt sometime last year: http://www.nabble.com/Adding-Dojo-when-not-using-the-Shell-Component-tf2889469.html It appears he was able to get it to work without the Shell component. It would be nice if Tapestry documented how to use their integrated dojo components. Dojo documentation is a mess. Can someone share their solution? Thanks in advanced. -- View this message in context: http://www.nabble.com/Appfuse-2.0%3A-Tapestry-4.1%2C-Dojo%2C-DatePicker-DropdownDatePicker-tf4518754s2369.html#a12889881 Sent from the AppFuse - User mailing list archive at Nabble.com.
