This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I would like to create domain class and controller with package instead of place it in the domains, controllers directory of Grails application. Grails allow this case, we can create domain/controller and place it in package under domains, controllers directory of Grails application with package directive for those arterfacts. For Netbeans 6.5 on Mac OS (not tested with other), 1. creating a domain class with the name com.example.project.Item for domain class will cause a 'Please input a valid name' error message 2. I create a domain class with name Item, then create some folder 'com/example/project' and move Item.groovy into the created folders, place a 'package com.example.project;' at the very top of 'Item.groovy'. But now, the 'Generate All' and 'Generate View' in the context menu of Item.groovy is disabled. Expected result: 1. Creating a domain class/controller accept com.example.project.Item as name, NB create com/example/project folder, generate Item.groovy with 'package com.example.project;' at begin of Item.groovy (grails already accept com.example.project.Item to do those thing, actually we just needs to accept com.example.project.Item and pass to grails tool) 2. Detect an Groovy class is domain class or controller not only by the just upper directory but by <app-dir>/grail-app/domains or <app-dir>/grail-app/controllers directory.
Thanks for the report! We definitely want to fix this for 7.0.
*** Issue 144000 has been marked as a duplicate of this issue. ***
Usecase #2 fixed in main 47417afc5772.
Integrated into 'main-golden', will be available in build *200902180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/47417afc5772 User: phejl@netbeans.org Log: #158246 Cannot create domain class, controller with package
*** Issue 159803 has been marked as a duplicate of this issue. ***
Fixed in web-main 660b30053d25.
Integrated into 'main-golden', will be available in build *200903170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/660b30053d25 User: phejl@netbeans.org Log: #158246 Cannot create domain class, controller with package
*** Issue 161024 has been marked as a duplicate of this issue. ***