Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.3, 0.4
-
Fix Version/s: 2.2
-
Component/s: Controllers
-
Labels:None
Description
Add support for placing controllers in sub-folders/packages within the controllers folder so you can keep related controllers together, create more structured urls and make path based url security easier?
For example:
\grails-app\controllers\SiteController.groovy -> http://localhost:8080/sample/site
\grails-app\controllers\admin\UserController.groovy -> http://localhost:8080/sample/admin/user
\grails-app\controllers\admin\RoleController.groovy -> http://localhost:8080/sample/admin/role
And views would obviously have to follow the package structure of their controller:
\grails-app\views\admin\user\show.gsp
Issue Links
- is related to
-
GRAILS-376
Organizing domain classes in subfolders
-
- relates to
-
GRAILS-9300
Add "package" attribute to UrlMappingInfo
-
-
GRAILS-376
Organizing domain classes in subfolders
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Link |
This issue is related to |
| Link |
This issue relates to |
| Fix Version/s | 0.5.5-RC1 [ 13431 ] | |
| Fix Version/s | 0.5.5-RC2 [ 13541 ] |
| Fix Version/s | 0.5.5 [ 13541 ] | |
| Fix Version/s | 0.6 [ 12699 ] |
| Fix Version/s | 1.0-RC1 [ 13341 ] | |
| Fix Version/s | 0.6 [ 12699 ] |
| Fix Version/s | 1.0-RC1 [ 13341 ] | |
| Fix Version/s | 1.1 [ 13674 ] |
| Parent | GRAILS-3406 [ 73800 ] | |
| Issue Type | Improvement [ 4 ] | Sub-task [ 7 ] |
| Fix Version/s | 1.1-beta2 [ 14752 ] | |
| Fix Version/s | 1.1-beta1 [ 13674 ] |
| Priority | Major [ 3 ] | Minor [ 4 ] |
| Fix Version/s | 1.1-beta3 [ 14824 ] | |
| Fix Version/s | 1.1-beta2 [ 14752 ] |
| Fix Version/s | 1.1-beta3 [ 14824 ] | |
| Fix Version/s | 1.1-RC1 [ 14929 ] |
| Fix Version/s | 1.1-RC1 [ 14929 ] | |
| Fix Version/s | 1.2 [ 14155 ] |
| Fix Version/s | 1.2-M1 [ 14155 ] | |
| Fix Version/s | 1.2-M2 [ 15425 ] |
| Fix Version/s | 1.2-M3 [ 15547 ] | |
| Fix Version/s | 1.2-M2 [ 15425 ] |
| Fix Version/s | 1.2-M3 [ 15547 ] | |
| Fix Version/s | 1.2-RC1 [ 15774 ] |
| Fix Version/s | 1.2-M4 [ 15774 ] | |
| Fix Version/s | 1.2-RC1 [ 15959 ] |
| Fix Version/s | 1.2-RC1 [ 15959 ] | |
| Fix Version/s | 2.0 [ 15421 ] |
| Assignee | Graeme Rocher [ graemerocher ] |
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
| Workflow | jira [ 35590 ] | Grails [ 40030 ] |
| Workflow | Grails [ 40030 ] | Copy of Grails [ 47464 ] |
| Workflow | Copy of Grails [ 47464 ] | Grails [ 54874 ] |
| Workflow | Grails [ 54874 ] | Grails2 [ 62426 ] |
| Workflow | Grails2 [ 62426 ] | jira [ 78803 ] |
| Workflow | jira [ 78803 ] | Grails2 [ 86845 ] |
| Last Reviewed | 01/Jan/10 |
| Workflow | Grails2 [ 86845 ] | jira [ 95197 ] |
| Workflow | jira [ 95197 ] | Grails2 [ 95633 ] |
| Fix Version/s | 2.2 [ 13093 ] | |
| Fix Version/s | 3.0 [ 11042 ] |
| Link | This issue relates to GRAILS-9300 [ GRAILS-9300 ] |
| Fix Version/s | 2.3 [ 13311 ] | |
| Fix Version/s | 2.2-RC1 [ 13093 ] |
| Assignee | Jeff Brown [ brownj ] |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | 2.2 [ 13408 ] | |
| Fix Version/s | 2.3 [ 13311 ] | |
| Resolution | Fixed [ 1 ] |
I have created this clone of
GRAILS-221, because:This improvement as described in
GRAILS-221is only half of the enhancement, and its not leading anywhere.A package is a namespace and not only a name.
The reason that controllers, domain classes should be in packages is exactly that multiple teams would be able to work in parallel if each team has its own package, and must not consider name clashes.