Browse files

[gus] added docs for passing through input args to default grails tags

  • Loading branch information...
1 parent 5d234b8 commit 393c8f0e0f6106d2a3e120df1f63001bf0e2a0ac @guspower guspower committed Mar 19, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/docs/guide/customizingFieldRendering.gdoc
View
9 src/docs/guide/customizingFieldRendering.gdoc
@@ -49,6 +49,15 @@ and override the template _f:input_ uses with any of these:
# @grails-app/views/\_fields/string/\_input.gsp@
# @grails-app/views/\_fields/default/\_input.gsp@
+h2. Default Behaviour - Using Grails Input Tags
+
+If no template override is found the plugin will use the standard grails input tags (e.g. _g:select_, _g:checkbox_, _g:field_) for rendering input controls.
+Using _f:field_ you can pass extra arguments (e.g. _optionKey_, _optionValue_) through to these tags by prefixing them with @input-@, e.g.
+
+{code}
+<f:field bean="person" property="gender" input-optionValue="name"/>
+{code}
+
h2. Template parameters
The _f:field_ and _f:input_ tags will pass the following parameters to your templates or to the body of _f:field_ if you use one:

0 comments on commit 393c8f0

Please sign in to comment.