The moose likes Groovy and the fly likes Grails newbie question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark "Grails newbie question" Watch "Grails newbie question" New topic
Author

Grails newbie question

Jorge Baroudi
Greenhorn

Joined: Nov 01, 2005
Posts: 10

Hi, hope you can help me out with some Grails problem.

I have a domain based in FDD project management model, something like this:

Project hasMany SubjectAreas
SubjectArea hasMany BusinessActivities
BusinessActivity hasMany Features

(Note: I'm using Subject Area instead of Major Feature Set as it had been discussed at www.featuredrivendevelopment.com forums By Mr. De Luca)

After executing "grails generate-all" command over all domain model classes i have a pretty and functional web site with all CRUD operations for all classes (but you all know grails does that!, don't you?)...

i'm just having one little detail, after having code generated, i start adding a project and i have the "Add Subject Area" link in the Edit project page, i follow the link and add several subject areas for the project (project is selected in one dropdown), If i select the Edit Subject Area button i don't have an "Add business activity" link, i know this is easy to implement, i just think it is important to mention it, maybe is part of a problem in my domain classes, altought, i have constraints and belongsTo [Project, SubjectArea] relation.

But my real problem starts when i go to add a business activity for a newly created subject area.

in Create and Edit Business Activity pages, i can select a project with Subject Areas of other project, so i'm looking to do an onchange event filter 'cause they won't get filtered after a simple code generation.

Can i have the aforementioned filter for dropdowns right after a code generation using some sort of constraint or other stuff?.

If code generation doesn't make something like child-dropdown-filter-from-parent-onchange-event then, what do you think is a good strategy to do this? is there an example of this cascading Dropdowns
feature?

Thanks in advance.


Technology is not an image of the world but a way of operating on reality. The nihilism of technology lies not only in the fact that it is the most perfect expression of the will to power ... but also in the fact that it lacks meaning.<br /> [Octavio Paz, Alternating Current, 1967]
Tug Wilson
Ranch Hand

Joined: Dec 12, 2006
Posts: 33
I'm afraid I can't help you as I'm a Groovy guy not a Grails one

I'd suggest you ask the quetion on the Grails usr mailing list - you should get a pretty rapid response there.
 
 
subject: Grails newbie question
 
developer file tools