- Previous thread: grails-user - ANN - Grails Neo4j plugin 0.3 released
- Next thread: grails-user - Can't get Java-based test to commit
- Threads sorted by date: grails 201007
Hello Grailers all, I have a Grails project that is mostly scaffolded by the generate methods. I have a domain DX and a domain DY. And, I have complementary controllers: CX and CY. I have form fields listed with data from DX and DY in files: x.gsp and y.gsp. Now, I want another file: z.gsp that lists the same fields listed in x.gsp and y.gsp. Anybody have a good Grails way of achieving this task? Pls advise, David.
http://xircles.codehaus.org/manage-email
http://xircles.codehaus.org/manage-email
something like this should work. Use the g:include functionality
prefix the fields in x.gsp as DX.prop1 DX.prop2.
move common fields out to a template -x.gsp
include -x.gsp in x.gsp
do the same for y.gsp
in z.gsp
In your z controller, you can then get the fields via params[ 'DX' ]
for each domain
prefix the fields in x.gsp as DX.prop1 DX.prop2.
move common fields out to a template -x.gsp
include -x.gsp in x.gsp
do the same for y.gsp
in z.gsp
In your z controller, you can then get the fields via params[ 'DX' ]
for each domain
Related Threads
- always_bcc - postfix
- New to ruby, using threads - ruby
- dana tunai tanpa jaminan provisi 1,5% - debian
- Zope 2.10, MySQL and Python 2.5 - freebsd
- [ruby-core:20706] [Feature #908] Should be an easy way of reading N characters from am I/O stream - ruby
- [PATCH, pretty-ipa] Rename jump function constants - gcc
- [users@httpd] Two _default_, one for port 80 and another for port 443 - httpd