|
|
|
This still does not work out-of-the-box with M5. Solution provided by Jason Thrasher:
http://www.nabble.com/Re%3A-ajax-and-datepicker-on-2m4-p10828138.html To see dojo's debug output, add this to the default.jsp:
<authz:authorize ifAllGranted="ROLE_ADMIN"> <div id="dojoDebugOutput"></div> </authz:authorize> It would be nice to have a "debug mode" for the webapp's UI, instead of relying on Roles though. Changed to use jscalendar for datepicker in Struts. Also, I recommend using Scriptaculous for Autocompletion. Copying dojo to an AppFuse application will work, but at 5 MB, it doesn't seem worth the effort. Most of Struts tags that use Dojo are buggy or slow.
See the following URL for more information: http://www.nabble.com/Moving-from-Canoo-WebTest-to-Selenium-tf3844464s2369.html#a10887242 Dojo has been integrated to the following branch:
https://appfuse.dev.java.net/svn/appfuse/branches/dojo-integration/ Use username "guest" and no password if you want to browse the above URL. You can also check it out from Subversion using these same credentials. |
||||||||||||||||||||||||||||||||||||||||
- Change the parser in sitemesh.xml to (commented out the 3 lines of HTMLPageParser):
<parser content-type="text/html" class="com.opensymphony.module.sitemesh.parser.FastPageParser"/>
- Added struts/dojo/* to the excludes part in the decorators.xml file.
<excludes>
<pattern>/struts/dojo/*</pattern>
<pattern>/resources/*</pattern>
</excludes>
- And changed back the includes param of the StaticFilter in the web.xml from /scripts/dojo/* to /struts/dojo/*
<init-param>
<param-name>includes</param-name>
<param-value>/struts/dojo/*</param-value>
</init-param>