Issue Details (XML | Word | Printable)

Key: GRAILS-2639
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Sergey Nebolsin
Votes: 1
Watchers: 1
Operations

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

Ajax tags in GSP templates always generate code for Prototype library

Created: 15/Mar/08 04:34 AM   Updated: 29/May/08 09:19 AM
Component/s: None
Affects Version/s: 1.0.1
Fix Version/s: 1.0.3

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive amazon-bug-report-29052008.zip (17 kB)

Issue Links:
Related
 


 Description  « Hide
request['org.codehaus.grails.INCLUDED_JS_LIBRARIES'] attribute is not propagated to GSP templates, so g:remote* tags in templates generate code for Prototype library (default behavior), even if I have <g:javascript library="jquery"/> in the layout.

Workaround: include library definition into GSP templates directly



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Peter Ledbrook added a comment - 28/May/08 11:37 AM
I think we need to change the way we deal with the adaptive tags. All it takes is for the user to put the <g;javascript library="..."/> tag in the layout, and the adaptive tags break! The only way I have found to work round this is to run a filter that sets the required request attributes. I think the filter approach would work with GSP templates too.

Graeme Rocher added a comment - 29/May/08 08:02 AM
I cannot reproduce the issue with the attached application that uses the YUI plugin. If you go to http://localhost:8080/amazon/book/list you'll see 2 links, one is pulled from a template

Both links use the YUI library.


Graeme Rocher added a comment - 29/May/08 08:50 AM
Re-scheduling until reproducible test app attached

Sergey Nebolsin added a comment - 29/May/08 09:19 AM
@Graeme: Hmm, I cannot reproduce it either both with Grails 1.0.2 and 1.0.3-SNAPSHOT. I think it was my mistake and the real issue which caused my problem was GRAILS-2766. So, having a passing test for this committed by you, I'm closing this one as "cannot reproduce".