Struts calendar selection box label & lt; sx: datetimepicker.../& gt; details

Source: Internet
Author: User

Pilot into the struts2-dojo-plugin-2.1.6.jar, and add at the beginning of the jsp page: <% @ taglib prefix = "sx" uri = "/struts-dojo-tags" %> Add <sx: head/> the following code directly implements the calendar selection box: [html] <sx: datetimepicker label = "calendar" name = "calendar" value = "today" toggleType = "plain" toggleDuration = "300" language = "zh_CN" type = "date" displayWeeks = "5 "displayFormat =" dd/MM/yyyy "formatLength =" long "/> Parameters: (Note: toggle ['t ɒ g (Limit) l] triggers). The final effect is as follows: <sx: datetimepicker value = "% {date}"/> <sx: datetimepicker value = "% {'2017-01-01 '}"/> <sx: datetimepicker value = "% {'today'}"/> datetimepicker tag parsing: Description: Renders a date/time picker in a dropdown (drop-down) container. A stand-alone DateTimePicker widget (Text desktop) that makes it easy to select a date/time, or increment by week, month, and/or year. it is possible to customize the user-visible formatting with either the 'formatlength' (long, short, medium or full) or 'displayformat' attributes. by defaulty current locale (region setting) will be used. all possible values of the displayFormat parameter: Format Descriptiond Day of the monthD Day of yearM Month-Use one or two for the numerical month, three for the abbreviation, or four for the full name, or 5 for the narrow name. y Yearh Hour [1-12]. H Hour [0-23]. m Minute. use one or two for zero padding. s Second. use one or two for zero padding. the following formats (in order) will be used to parse the values of the attributes 'value', 'startdate' and 'enddate ': simpleDateFormat built using RFC 3339 (yyyy-MM-dd't'hh: mm: ss) SimpleDateFormat. getTimeInstance (DateFormat. SHORT) SimpleDateFormat. getDateInstance (DateFormat. SHORT) SimpleDateFormat. getDateInstance (DateFormat. MEDIUM) SimpleDateFormat. getDateInstance (DateFormat. FULL) SimpleDateFormat. getDateInstance (DateFormat. LONG) SimpleDateFormat built using the value of the 'displayformat' attribute (if any)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.