Issue Details (XML | Word | Printable)

Key: GRAILS-3264
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Graeme Rocher
Reporter: Marcus Better
Votes: 5
Watchers: 4
Operations

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

"taglib" direcive in GSP no longer works

Created: 21/Jul/08 02:44 PM   Updated: 05/Dec/08 11:13 AM   Resolved: 05/Dec/08 11:13 AM
Return to search
Component/s: View technologies
Affects Version/s: 1.1-beta1
Fix Version/s: 1.1-beta2

Time Tracking:
Not Specified

Environment: Debian Linux, OpenJDK 6, Grails 1.1-SNAPSHOT (r7232)


 Description  « Hide

I had the following directive in my GSPs, following the instruction at http://grails.org/Eclipse+IDE+Integration :

<%@ taglib prefix="g" uri="/web-app/WEB-INF/tld/grails.tld" %>

This worked in 1.0.3, but no longer works in 1.1-SNAPSHOT. The GSP tags are now completely ignored. To fix it I just removed the directive (breaking code completion in Eclipse).



Graeme Rocher added a comment - 22/Jul/08 08:26 AM

Grails 1.1 now supports custom JSP tag libraries and by doing the above you are overriding Grails built in tags, there is nothing we can do about this really. There needs to be an improved GSP editor for Ecilpse


Graeme Rocher made changes - 22/Jul/08 08:26 AM
Field Original Value New Value
Resolution Won't Fix [ 2 ]
Fix Version/s 1.1 [ 13674 ]
Status Open [ 1 ] Closed [ 6 ]
Marcus Better added a comment - 22/Jul/08 11:23 AM

That's fine. I added a note to the wiki page.


Jean-Noël Rivasseau added a comment - 15/Aug/08 02:49 PM

Closed as WONTFIX ??! This is IMHO an extremely important bug. The Eclipse integration / support for Grails is already at a near zero level. Dropping support for syntax coloring, completion and validation of GSP files is going to be really problematic. Isn't there a workaround or something that can be done? If not, I guess there should be some kind of announcement that using Grails with Eclipse is almost impossible at the moment...


Jean-Noël Rivasseau added a comment - 15/Aug/08 02:52 PM

When I mentioned a workaround: maybe it's possible to disable the JSP custom tag libraries support in Grails in exchange for this support? As I dont use JSPs at all I would happily just do that.

I agree with Graeme though that the real thing that needs to be done is a full-blown GSP editor for Eclipse.


Graeme Rocher added a comment - 18/Aug/08 08:55 AM

On second thought, maybe we can add code to make it impossible to override the default namespace 'g' in which case we would printer a warning to the console. Users of the Eclipse plugin will for the meantime have to take this as a trade-off


Graeme Rocher made changes - 18/Aug/08 08:55 AM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Won't Fix [ 2 ]
Graeme Rocher added a comment - 19/Sep/08 04:50 AM

Reduced priority of non critical issues which have current workarounds


Graeme Rocher made changes - 19/Sep/08 04:50 AM
Priority Major [ 3 ] Minor [ 4 ]
Jean-Noël Rivasseau added a comment - 19/Sep/08 04:58 AM

I think the remark by Graeme (make it impossible to override the default namespace 'g' ) must absolutely make it into 1.1 - if it does not that would be a blocker for not using 1.1 for me, as I do need the Eclipse support for writing GSPs,


Graeme Rocher made changes - 28/Nov/08 08:22 AM
Fix Version/s 1.1-beta1 [ 13674 ]
Fix Version/s 1.1-beta2 [ 14752 ]
Graeme Rocher made changes - 05/Dec/08 10:58 AM
Status Reopened [ 4 ] In Progress [ 3 ]
Graeme Rocher added a comment - 05/Dec/08 11:13 AM

Ok an error is now printed if you try and override the default namespace


Graeme Rocher made changes - 05/Dec/08 11:13 AM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]