grails scaffolding with 3.0.9

48 views
Skip to first unread message

Fabio Canella

unread,
Jan 4, 2016, 5:38:26 PM1/4/16
to Grails Dev Discuss
I'm trying to customize the scaffolding templates but I can't see the _form.gsp file;
I would like to modify the templates like shown in the following link:
https://github.com/mrnohr/grails-twitter-bootstrap/tree/master/src/templates/scaffolding
but problably from 2.4 version to 3.0 version the file _form.gsp has been removed.

Can you confirm that the scaffolds files has been changed ?
Do you know any other templates that use bootstrap with grails 3.0.9 ?

Best regards
Fabio

Chris Malan

unread,
Feb 15, 2016, 10:43:08 AM2/15/16
to Grails Dev Discuss
Yes, the _form.gsp page is gone. The fields plugin now renders the create/edit, show and index views from the domain class.  You will find a tag like <f:all bean="book"/> in the create and edit pages and <f:display bean="book" /> in the show page.  Obviously, the question is now how to exert control over those.

Graeme Rocher

unread,
Feb 18, 2016, 3:07:40 AM2/18/16
to grails-de...@googlegroups.com
The fields plugin is very flexible, you can render all properties of a bean or only the ones you want / customize it however you need

Cheers
Graeme

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/2830104f-01cc-4cba-8ef8-1aaf6e7a2207%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages