- 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>
J. David Mendoza R. added a comment - 26/Apr/07 03:40 PM The solution I found:
- 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>
2651
by Matt Raible
(3 files)
- APF-739: Fixed SiteMesh and StaticFilter so they'll work with Struts 2's Dojo support
26/Apr/07 04:03 PM (39 months, 16 days ago)
APF-739: Fixed SiteMesh and StaticFilter so they'll work with Struts 2's Dojo support
Jason Thrasher added a comment - 30/May/07 06:34 PM 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.
Matt Raible added a comment - 06/Jun/07 05:07 PM 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
Matt Raible added a comment - 13/Jun/07 09:58 AM 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>