Nerderg Formtags Plugin

  • Tags : ui, interface, client
  • Latest : 2.1.3
  • Last Updated: 04 December 2012
  • Grails version : 2.1 > *
0 vote
Dependency :
compile ":nerderg-form-tags:2.1.3"

Documentation Source Issues

Summary

A taglib for forms. see <a href="http://nerderg.com/Nerderg+Form+Taglib">documentation</a>

Bringing 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"]'/>

Installation

grails install-plugin nerderg-form-tags

Description

Nerderg Form Taglib - Harness the power of one nerd. See documentation

Bringing 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"]'/>