Export to GitHub

struts2-jquery - issue #431

add an option for datetime picker and datetime formatter


Posted on Feb 9, 2011 by Quick Bird

Please replicate all the functionality for date to datetime too.

This is a very good datetime picker.Currently I am using this with struts2-jquery and grid plugin.

https://github.com/trentrichardson/jQuery-Timepicker-Addon/blob/dev/jquery-ui-timepicker-addon.js

Comment #1

Posted on Apr 4, 2011 by Quick Kangaroo

I need this as well. I do tons of report queries which dateTime pickers...

Comment #2

Posted on Apr 7, 2011 by Swift Lion

(No comment was entered for this change.)

Comment #3

Posted on Jun 16, 2011 by Swift Lion

http://code.google.com/p/struts2-jquery/source/detail?r=1460

Samples:

  <sj:datepicker id="time0" label="Select a Date/Time" value="%{new java.util.Date()}" timepicker="true" />
  <sj:datepicker id="time1" label="Select a Time" value="%{new java.util.Date()}" timepicker="true" timepickerOnly="true"/>
  <sj:datepicker id="time2" label="With AM/PM" timepicker="true" timepickerAmPm="true"/>
  <sj:datepicker id="time3" label="Show Seconds" timepicker="true" timepickerShowSecond="true" timepickerFormat="hh:mm:ss"/>
  <sj:datepicker id="time4" label="With Steps" timepicker="true" timepickerShowSecond="true" timepickerFormat="h:m:s" timepickerStepHour="2" timepickerStepMinute="10" timepickerStepSecond="15"/>
  <sj:datepicker id="time5" label="With Seperator" timepicker="true" timepickerSeparator=" at "/>
  <sj:datepicker id="time6" label="With Grid" timepicker="true" timepickerOnly="true" timepickerGridHour="4" timepickerGridMinute="10" timepickerStepMinute="10"/>

Comment #4

Posted on Jun 16, 2011 by Swift Lion

Issue 349 has been merged into this issue.

Comment #5

Posted on Jun 29, 2011 by Swift Lion

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Enhancement Priority-Medium Component-Plugin Milestone-3.1.0