History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1060
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Graeme Rocher
Reporter: Sergey Nebolsin
Votes: 0
Watchers: 0
Operations

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

Creating links with reverse url mapping is broken until ApplicationTagLib becomes reloaded

Created: 23/Apr/07 06:26 AM   Updated: 23/Apr/07 01:41 PM
Component/s: TagLib
Affects Version/s: 0.5-RC1
Fix Version/s: 0.5-RC1

Time Tracking:
Not Specified


 Description  « Hide
then I'm starting my app links created by <g:link> tag is wrong (they always are in 'controller/action/id' form). But if I'm changing ApplicationTagLib.groovy (simply touch) so it becomes reloaded by Grails - everything start to work fine. I've added logging to ApplicationTagLib and found that 'grailsUrlMappingsHolder' is null until this taglib becomes reloaded.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Graeme Rocher - 23/Apr/07 10:25 AM
fixed now, and GRAILS-1060. Please confirm

Sergey Nebolsin - 23/Apr/07 10:49 AM
Now I have following error for <g:link>
Unable to create URL for mapping [/admin/(*)/(*)?/(*)?] and parameters [{}]. Parameter [controller] is required, but was not specified!

Looks like it tries to find parameter for '$controller' clause in params instead of using data from mapping itself .


Sergey Nebolsin - 23/Apr/07 01:41 PM
I just commited another small fix for createLink() tag and now it all seems to work fine.

Thank you!