Issue Details (XML | Word | Printable)

Key: APF-739
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Matt Raible
Reporter: J. David Mendoza R.
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
AppFuse

Struts2 tags (autocompleter, datetimepicker) don't work out-of-the-box (dojo scripts not loading)

Created: 26/Apr/07 03:37 PM   Updated: 24/Sep/08 09:47 PM   Resolved: 06/Jun/07 05:09 PM
Component/s: Web - Struts
Affects Version/s: 2.0-M4
Fix Version/s: 2.0-M5


 Description  « Hide
It appears that Sitemesh and the StaticFilter are working together to forbid the Dojo scripts embedded in struts2.jar to load.

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)
26/Apr/07 04:03 PM (39 months, 16 days ago)
Matt Raible made changes - 26/Apr/07 04:15 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.0-M5 [ 10141 ]
Resolution Fixed [ 1 ]
Matt Raible added a comment - 30/May/07 05:23 PM
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

Matt Raible made changes - 30/May/07 05:23 PM
Status Resolved [ 5 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
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.

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 made changes - 06/Jun/07 05:07 PM
Resolution Fixed [ 1 ]
Status Reopened [ 4 ] Resolved [ 5 ]
Matt Raible made changes - 06/Jun/07 05:08 PM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Matt Raible made changes - 06/Jun/07 05:09 PM
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Won't Fix [ 2 ]
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.

http://www.bloglines.com/forums/read.php?24,258624
http://www.bloglines.com/forums/read.php?24,258622
http://www.bloglines.com/forums/read.php?24,258619
http://www.bloglines.com/forums/read.php?24,258617
http://www.bloglines.com/forums/read.php?24,258615
http://www.bloglines.com/forums/read.php?24,258612
http://www.bloglines.com/forums/read.php?24,258610
http://www.bloglines.com/forums/read.php?24,258607
http://www.bloglines.com/forums/read.php?24,258604
http://www.bloglines.com/forums/read.php?24,258600
http://www.bloglines.com/forums/read.php?24,258598
http://www.bloglines.com/forums/read.php?24,258595
http://www.bloglines.com/forums/read.php?24,258592
http://www.bloglines.com/forums/read.php?24,258588
http://www.bloglines.com/forums/read.php?24,258584
http://www.bloglines.com/forums/read.php?24,258581
http://www.bloglines.com/forums/read.php?24,258577
http://www.bloglines.com/forums/read.php?24,258575
http://www.bloglines.com/forums/read.php?24,258571
http://www.bloglines.com/forums/read.php?24,258568
http://www.bloglines.com/forums/read.php?24,258566
http://www.bloglines.com/forums/read.php?24,258560
http://www.bloglines.com/forums/read.php?24,258547
http://www.bloglines.com/forums/read.php?24,258544
http://www.bloglines.com/forums/read.php?24,258540
http://www.bloglines.com/forums/read.php?24,258537
http://www.bloglines.com/forums/read.php?24,258534
http://www.bloglines.com/forums/read.php?24,258532
http://www.bloglines.com/forums/read.php?24,258529
http://www.bloglines.com/forums/read.php?24,258526
http://www.bloglines.com/forums/read.php?24,258524
http://www.bloglines.com/forums/read.php?24,258522
http://www.bloglines.com/forums/read.php?24,258518
http://www.bloglines.com/forums/read.php?24,258502
http://www.bloglines.com/forums/read.php?24,258494
http://www.bloglines.com/forums/read.php?24,258484
http://www.bloglines.com/forums/read.php?24,258470
http://www.bloglines.com/forums/read.php?24,258453
http://www.bloglines.com/forums/read.php?24,258448
http://www.bloglines.com/forums/read.php?24,258443
http://www.bloglines.com/forums/read.php?24,258440
http://www.bloglines.com/forums/read.php?24,258437
http://www.bloglines.com/forums/read.php?24,258433
http://www.bloglines.com/forums/read.php?24,258428
http://www.bloglines.com/forums/read.php?24,258425
http://www.bloglines.com/forums/read.php?24,258423
http://www.bloglines.com/forums/read.php?24,258415
http://www.bloglines.com/forums/read.php?24,258410
http://www.bloglines.com/forums/read.php?24,258407
http://www.bloglines.com/forums/read.php?24,258405
http://www.bloglines.com/forums/read.php?24,258402
http://www.bloglines.com/forums/read.php?24,258400
http://www.bloglines.com/forums/read.php?24,258398
http://www.bloglines.com/forums/read.php?24,258395
http://www.bloglines.com/forums/read.php?24,258393
http://www.bloglines.com/forums/read.php?24,258391
http://www.bloglines.com/forums/read.php?24,258388
http://www.bloglines.com/forums/read.php?24,258386
http://www.bloglines.com/forums/read.php?24,258384
http://www.bloglines.com/forums/read.php?24,258382
http://www.bloglines.com/forums/read.php?24,258379
http://www.bloglines.com/forums/read.php?24,258377
http://www.bloglines.com/forums/read.php?24,258375
http://www.bloglines.com/forums/read.php?24,258372
http://www.bloglines.com/forums/read.php?24,258368
http://www.bloglines.com/forums/read.php?24,258366
http://www.bloglines.com/forums/read.php?24,258364
http://www.bloglines.com/forums/read.php?24,258360
http://www.bloglines.com/forums/read.php?24,258358
http://www.bloglines.com/forums/read.php?24,258353
http://www.bloglines.com/forums/read.php?24,258349
http://www.bloglines.com/forums/read.php?24,258346
http://www.bloglines.com/forums/read.php?24,258343
http://www.bloglines.com/forums/read.php?24,258341
http://www.bloglines.com/forums/read.php?24,258339
http://www.bloglines.com/forums/read.php?24,258336
http://www.bloglines.com/forums/read.php?24,258333
http://www.bloglines.com/forums/read.php?24,258330
http://www.bloglines.com/forums/read.php?24,258328
http://www.bloglines.com/forums/read.php?24,258326
http://www.bloglines.com/forums/read.php?24,258323
http://www.bloglines.com/forums/read.php?24,258320
http://www.bloglines.com/forums/read.php?24,258317
http://www.bloglines.com/forums/read.php?24,258314
http://www.bloglines.com/forums/read.php?24,258311
http://www.bloglines.com/forums/read.php?24,258308
http://www.bloglines.com/forums/read.php?24,258306
http://www.bloglines.com/forums/read.php?24,258302
http://www.bloglines.com/forums/read.php?24,258300
http://www.bloglines.com/forums/read.php?24,258296
http://www.bloglines.com/forums/read.php?24,258294
http://www.bloglines.com/forums/read.php?24,258291
http://www.bloglines.com/forums/read.php?24,258288
http://www.bloglines.com/forums/read.php?24,258285
http://www.bloglines.com/forums/read.php?24,258283
http://www.bloglines.com/forums/read.php?24,258281
http://www.bloglines.com/forums/read.php?24,258278
http://www.bloglines.com/forums/read.php?24,258276
http://www.bloglines.com/forums/read.php?24,258274
http://www.bloglines.com/forums/read.php?24,258271
http://www.bloglines.com/forums/read.php?24,258269
http://www.bloglines.com/forums/read.php?24,258266
http://www.bloglines.com/forums/read.php?24,258264
http://www.bloglines.com/forums/read.php?24,258261
http://www.bloglines.com/forums/read.php?24,258258
http://www.bloglines.com/forums/read.php?24,258256
http://www.bloglines.com/forums/read.php?24,258253
http://www.bloglines.com/forums/read.php?24,258249
http://www.bloglines.com/forums/read.php?24,258095
http://www.bloglines.com/forums/read.php?24,258094
http://www.bloglines.com/forums/read.php?24,258092