DateTime component to wrap separate date and time components
------------------------------------------------------------
Key: MYFACES-844
URL: http://issues.apache.org/jira/browse/MYFACES-844
Project: MyFaces
Type: New Feature
Components: Sandbox
Reporter: Dave Brondsema
Priority: Minor
This component would bind to a single java.util.Date and let the developer
decide which date input component to use and which time input component to use.
Example of use is:
<x:inputDateTime id="datetimeNeeded"
value="#{formbean.form.datetimeNeeded}" required="true" dateChildIndex="0"
timeChildIndex="2">
<h:inputText
id="datetimeNeeded_datepart">
<f:convertDateTime
pattern="MM/dd/yyyy" timeZone="#{jsfUtils.tz}"/>
</h:inputText>
<jp:popupCalendar
for="datetimeNeeded_datepart" format="MM/dd/yyyy" noneDisabled="true"
rendered="#{formbean.form.editable}"/>
<t:inputDate type="short_time"
ampm="true"/>
</x:inputDateTime>
I have only tested with facelets, so would appreciate someone testing with JSP.
As a side note, this would allow us to separate inputDate into inputDate and
inputTime, which could be useful so developers can easily mix and match with
inputCalendar
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira