<nerderg:timefield label='Time of accident' field='toa' bean='${myCommand}' format='hh:mm a'/>

The above tag will produce something like this (depending on CSS):

See source

Tag specific attributes

  • none


  • You can include the NerdergTagLib.js library to get a time entry helper. You'll also need the timeentry jQuery plugin.
  • the field/value can be a Date or String.
  • a string value can be anything parseable by jChronic, like "Tommorrow 2pm"
  • use format to define how the parsed date is displayed - however timeentry jquery plugin will standardise that.
  • if the value is not parseable as a date it will not be formatted and just displayed as is.

Copyright © nerdErg Pty Ltd 2012 ABN 20 159 294 989