Last updated by Vidocq 1 year ago
grails install-plugin nerderg-form-tags
Last updated by Vidocq 1 year ago
Nerderg Form Taglib - Harness the power of one nerd.
See
documentationBringing Readability, Convention, Consistency and CSS to form design.
It gives you:
- Labels and structure without cluttering up your GSP form
- Standard error marking and handling without cluttering up your GSP form
- Compatibility with browsers
- Javascript assistance with pickers and choosers where appropriate using jQuery
- CSS themeable rendering of forms
e.g.
<nerderg:formfield label='Select one' field='age' bean='${myCommand}'>
<g:select name="age" from="${18..65}" value="${myCommand.age}"/>
</nerderg:formfield>
<nerderg:inputfield label='First name' field='firstname' bean='${myCommand}'/>
<nerderg:datefield label='Date of birth' field='dob' bean='${myCommand}' format='dd/MM/yyyy'/>
<nerderg:timefield label='Time of accident' field='toa' bean='${myCommand}' format='hh:mm a'/>
<nerderg:datetimefield label='Start' field='eventStart' bean='${myCommand}' format='dd/MM/yyyy hh:mm'/>
<nerderg:checkboxgroup label='Options' field='selOptions' from='${allOptions}' bean='${myCommand}'/>
<nerderg:asJSArray var="options" items='["opt1", "opt2", "opt3"]'/>
Last updated by admin 1 year ago
Last updated by admin 1 year ago