Saturday, August 26, 2006

Grails: The DHTML JavaScript Date Picker




Grails Calendar (Date Picker) TagLib using ,The DHTML / JavaScript Calendar

http://www.dynarch.com/projects/calendar/

  1. Download jscalendar-1.0.zip from http://www.dynarch.com/projects/calendar/
  2. Extract the archive into {your-grails-app}/web-app/js/
  3. rename directory name jscalendar-1.0 to calendar.
    Ex: {your-grails-app}/web-app/js/calendar/

  4. Create a new tag library class
    source here
    see Contributed a Tag page on Grails

  5. add calendar.select=Date Select in
    {your-grails-app}/grails-app/i18n/messages.properties for locale support
  6. usage : replace <g:datePicker .... to <g:jsdatePicker ..... in edit.gsp and create.gsp



Labels: ,

0 Comments:

Post a Comment

<< Home