Apache Struts 2 Documentation > Home > Guides > Tag Developers Guide > Struts Tags > Tag Reference > UI Tag Reference > timepicker
Added by tm_jee, last edited by Ted Husted on Sep 02, 2006  (view change)
Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.

Description

Content pulled from external source. Click here to refresh.

Renders timepicker element.

Format supported by this component are:-
Format Description
#HH Display hour in two digit format
#H Try to display hour in one digit format, if cannot use 2 digits
#hh Display hour in two digit format
#h Try to display hour in one digit format, if cannot use 2 digits
#mm Display minutes in 2 digits format
#m Try to display minutes in 2 digits fomrat, if cannot use 2 digits

Parameters

An error occurred: https://svn.apache.org/repos/asf/struts/struts2/trunk/docs/tags/TimePicker.html. The system administrator has been notified.

Examples

Content pulled from external source. Click here to refresh.

<s:timepicker label="Show Time" name="showTime" value="05:00" format="#hh:#mm" />

<s:timepicker label="Dinner Time" name="dinnerTime" format="#hh-#mm" />