ICEfaces
  1. ICEfaces
  2. ICE-10935

ace:dateTimeEntry - Add ability to define multiple ranges of min/max dates

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P03, 4.1
    • Fix Version/s: EE-4.2.0.GA, EE-3.3.0.GA_P05
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      Feature Request: The ability to add multiple dates or ranges for the mindate and maxdate values. For example from 11/1/2015 to 15/1/2015 and from /01/2015 to 22/1/2015 and from 25.1.2015 to 29.1.2015.
      1. dates.PNG
        15 kB
      2. startDate.PNG
        38 kB

        Activity

        Hide
        Arturo Zambrano added a comment -

        r51402: ace:dateTimeEntry, added ability to define multiple ranges of min/max dates via the new 'selectableDateRanges' attribute

        This is the TLD documentation for the 'selectableDateRanges' attribute, explaining how it works and other considerations:

        Specifies a number of ranges of selectable dates. The value can be a number of date strings separated by commas, a List of Date objects or an Array of Date objects. These dates are taken in pairs to delimit a range; the first date in the pair is the start date, and the second date in the pair is the end date of that range. These dates are inclusive. If the first date of the pair is null, the empty string, or an invalid date, then the range will be considered to be from any date in the past up to its end date. Likewise, if the second date of the pair is null, an empty string, or an invalid date, then the range will be considered to be from its start date to any date in the future thereafter. If the dates are specified as strings, they are parsed according to the 'pattern' attribute of this component. Dates are taken literally, as they appear in the calendar, without regard for time zones. This attribute takes precedence over the 'mindate', 'maxdate', 'minDateTime', and 'maxDateTime' attributes. This attribute is only used to specify date ranges, not date-time ranges.

        Show
        Arturo Zambrano added a comment - r51402: ace:dateTimeEntry, added ability to define multiple ranges of min/max dates via the new 'selectableDateRanges' attribute This is the TLD documentation for the 'selectableDateRanges' attribute, explaining how it works and other considerations: Specifies a number of ranges of selectable dates. The value can be a number of date strings separated by commas, a List of Date objects or an Array of Date objects. These dates are taken in pairs to delimit a range; the first date in the pair is the start date, and the second date in the pair is the end date of that range. These dates are inclusive. If the first date of the pair is null, the empty string, or an invalid date, then the range will be considered to be from any date in the past up to its end date. Likewise, if the second date of the pair is null, an empty string, or an invalid date, then the range will be considered to be from its start date to any date in the future thereafter. If the dates are specified as strings, they are parsed according to the 'pattern' attribute of this component. Dates are taken literally, as they appear in the calendar, without regard for time zones. This attribute takes precedence over the 'mindate', 'maxdate', 'minDateTime', and 'maxDateTime' attributes. This attribute is only used to specify date ranges, not date-time ranges.
        Hide
        Ken Fyten added a comment -

        Re-open to backport to the EE 3.3. maintenance branch.

        Show
        Ken Fyten added a comment - Re-open to backport to the EE 3.3. maintenance branch.
        Hide
        Arturo Zambrano added a comment -

        r51444: backported to the 3.3 EE maintenance branch

        Show
        Arturo Zambrano added a comment - r51444: backported to the 3.3 EE maintenance branch
        Hide
        Ken Fyten added a comment -

        Re-opened to add new showcase demo for this feature.

        Show
        Ken Fyten added a comment - Re-opened to add new showcase demo for this feature.
        Hide
        Arturo Zambrano added a comment -

        r51453: added selectable date ranges demo to the showcase

        Show
        Arturo Zambrano added a comment - r51453: added selectable date ranges demo to the showcase
        Hide
        Ken Fyten added a comment -

        Let's re-arrange the demo layout as follows:

        • Make each range Start/End fit on one row
        • Remove the "Submit Date" button and use ajax to auto submit each selected date.
        • Add some vertical whitespace between the top "Selected Date" box, the date range configuration box (add a border around it), and the date entry component.
        Show
        Ken Fyten added a comment - Let's re-arrange the demo layout as follows: Make each range Start/End fit on one row Remove the "Submit Date" button and use ajax to auto submit each selected date. Add some vertical whitespace between the top "Selected Date" box, the date range configuration box (add a border around it), and the date entry component.
        Hide
        Arturo Zambrano added a comment -

        r51459: modified approach to make sure date ranges are inclusive
        r51460: committed demo improvements described in previous comment
        r51461: committed fixes to the EE 3.3 maintenance branch

        Show
        Arturo Zambrano added a comment - r51459: modified approach to make sure date ranges are inclusive r51460: committed demo improvements described in previous comment r51461: committed fixes to the EE 3.3 maintenance branch
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk, ee-3.3.0 maintenance branch r51465, tomcat 8, MS Edge, IE 11, 10 9, 8, 7, FF 47, Chrome 57.
        Added test app /ICE-10935.jsf to
        http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Nightly/dateTimeEntry
        http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/dateTimeEntry

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk, ee-3.3.0 maintenance branch r51465, tomcat 8, MS Edge, IE 11, 10 9, 8, 7, FF 47, Chrome 57. Added test app / ICE-10935 .jsf to http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Nightly/dateTimeEntry http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/dateTimeEntry
        Hide
        Arturo Zambrano added a comment -

        r51474: rearranged demo controls and added growl messages for cases when end dates are before start dates and vice versa

        Show
        Arturo Zambrano added a comment - r51474: rearranged demo controls and added growl messages for cases when end dates are before start dates and vice versa
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r51480, tomcat 8, MS Edge, IE 11, 10, 9, 8, FF 47, Chrome 57.

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r51480, tomcat 8, MS Edge, IE 11, 10, 9, 8, FF 47, Chrome 57.
        Hide
        Ken Fyten added a comment -

        Showcase Demo Review Notes

        • Change the "Selected Date:" label for the dateTimeEntry comp to "Select a Date:"
        • Can the whitespace between the labels and entry fields be shortend?
        Show
        Ken Fyten added a comment - Showcase Demo Review Notes Change the "Selected Date:" label for the dateTimeEntry comp to "Select a Date:" Can the whitespace between the labels and entry fields be shortend?
        Hide
        Arturo Zambrano added a comment -

        r51643: modified label; reduced space between labels and inputs

        Show
        Arturo Zambrano added a comment - r51643: modified label; reduced space between labels and inputs
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r51643, Tomcat 8, MS Edge, IE 11, 10, 9, 8, FF 47, Chrome 57.

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r51643, Tomcat 8, MS Edge, IE 11, 10, 9, 8, FF 47, Chrome 57.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: