• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Grails newbie question

 
Greenhorn
Posts: 10
jQuery Ruby Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic