Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-144

DateTime component to wrap separate date and time components

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Date
    • None

    Description

      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

      Attachments

        1. InputDateTime.patch
          14 kB
          David Philip Brondsema

        Activity

          People

            Unassigned Unassigned
            brondsem David Philip Brondsema
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: