You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Dave Brondsema (JIRA)" <de...@myfaces.apache.org> on 2006/02/24 23:33:56 UTC
[jira] Commented: (TOMAHAWK-144) DateTime component to wrap
separate date and time components
[ http://issues.apache.org/jira/browse/TOMAHAWK-144?page=comments#action_12367723 ]
Dave Brondsema commented on TOMAHAWK-144:
-----------------------------------------
That code I provided is buggy. I have a better implementation that works with facelets, I'm still trying to get it to work with JSPs.
If anyone's interested, let me know and I'll post what i have so far here.
> DateTime component to wrap separate date and time components
> ------------------------------------------------------------
>
> Key: TOMAHAWK-144
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-144
> Project: MyFaces Tomahawk
> Type: Bug
> Components: Date
> Reporter: Dave Brondsema
> Priority: Minor
> Attachments: InputDateTime.patch
>
> 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