Grails

Sortable tables (and links, etc) do not work when domain classes are in a package and gsp page is not crud

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.0.4
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

I'm creating a very simple GSP page here (join.gsp), but I doesn't work: it complains that the controller name is missing. I find that very strange, since it's an exact copy of create.gsp (which is autogenerated).I've created a couple of new projects, but each project which uses domain classes in packages has this problem. Currently, even the g:sortableColumns do not work (and they don't have a controller property, so the 'fix' doesn't work there. The error I get is the following:

org.codehaus.groovy.grails.web.mapping.exceptions.UrlMappingException: Unable to create URL for mapping [/(*)/(*)?/(*)?] and parameters [{sort=id, order=asc, action=join}]. Parameter [controller] is required, but was not specified!
at Users_erikp_UserFiles_Projects_byveo_grails_app_views_group_join_gsp.run(Users_erikp_UserFiles_Projects_byveo_grails_app_views_group_join_gsp:27)

  1. Group.groovy
    18/Feb/09 9:24 AM
    0.1 kB
    Erik Pragt
  2. package-bug.tar
    18/Feb/09 9:24 AM
    610 kB
    Erik Pragt
  3. test.gsp
    18/Feb/09 9:24 AM
    2 kB
    Erik Pragt

Activity

Hide
Graeme Rocher added a comment -

please attach an example

Show
Graeme Rocher added a comment - please attach an example
Hide
Erik Pragt added a comment -

It happens when I access this page with the url: http://localhost:8080/package-bug/user/bug.gsp (see the tar file for that)

Show
Erik Pragt added a comment - It happens when I access this page with the url: http://localhost:8080/package-bug/user/bug.gsp (see the tar file for that)
Hide
Erik Pragt added a comment -

Btw, the tar contains the bug.gsp, which is a copy of list.gsp. No changes are made except for changing the filename.

Show
Erik Pragt added a comment - Btw, the tar contains the bug.gsp, which is a copy of list.gsp. No changes are made except for changing the filename.
Hide
Graeme Rocher added a comment -

btw in future it is probably easier to do

grails bug-report

which will create a zip for you

Show
Graeme Rocher added a comment - btw in future it is probably easier to do grails bug-report which will create a zip for you
Hide
Graeme Rocher added a comment -

Can't reproduce in Grails 1.1 SVN, so assigned as fix for 1.0.5 (if we do one)

Show
Graeme Rocher added a comment - Can't reproduce in Grails 1.1 SVN, so assigned as fix for 1.0.5 (if we do one)
Hide
Graeme Rocher added a comment -

Doesn't apply to 1.1 branch

Show
Graeme Rocher added a comment - Doesn't apply to 1.1 branch

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: