ICEfaces
  1. ICEfaces
  2. ICE-2095

selectInputDate: popupDateFormat not working as expected

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.2, 1.7DR#1, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      any

      Description

      guess there's a page containing a simple selectInputDate component like:

      <ice:selectInputDate renderAsPopup="true"
      value="#{TestBean.date}"
      id="dateField"
      popupDateFormat="EEE, d MMM yyyy">
      </ice:selectInputDate>

      when the page is entered initially and there is a pre-existing value for the date then
      the format is not applied to this component. Instead the date will be shown with the
      component's default format settings. The correct format will be applied when
      the JSF lifecycle is initiated i.e. by a partialSubmit of another component. the problem
      then is that a conversion error occurs, because the default format doesn't match the
      value of the popupDateFormat attribute.

        Activity

        Michael Thiem created issue -
        Michael Thiem made changes -
        Field Original Value New Value
        Support Case References https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=4292
        Michael Thiem made changes -
        Mark Collette made changes -
        Assignee Mark Collette [ mark.collette ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14821 Thu Sep 13 17:12:02 MDT 2007 mark.collette ICE-2095 : selectInputDate: popupDateFormat not working as expected
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDate.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDateRenderer.java
        Hide
        Mark Collette added a comment -

        The actual DateFormat object is now properly derived from the String popupDateFormat property which is its pattern.

        Subversion 14821
        icefaces\component\src\com\icesoft\faces\component\selectinputdate\SelectInputDate.java
        icefaces\component\src\com\icesoft\faces\component\selectinputdate\SelectInputDateRenderer.java

        Show
        Mark Collette added a comment - The actual DateFormat object is now properly derived from the String popupDateFormat property which is its pattern. Subversion 14821 icefaces\component\src\com\icesoft\faces\component\selectinputdate\SelectInputDate.java icefaces\component\src\com\icesoft\faces\component\selectinputdate\SelectInputDateRenderer.java
        Mark Collette made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.7DR#1 [ 10100 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.6.2 [ 10111 ]
        Fix Version/s 1.7DR#1 [ 10100 ]
        Hide
        Ken Fyten added a comment -

        Needs to be backported to the 1.6 branch.

        Show
        Ken Fyten added a comment - Needs to be backported to the 1.6 branch.
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Ken Fyten made changes -
        Fix Version/s 1.7DR#1 [ 10100 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14993 Fri Oct 19 17:41:31 MDT 2007 mark.collette Backport to 1.6.2 : ICE-1865, ICE-2082, ICE-2095, ICE-2150, ICE-2127
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/samples/component-showcase/src/com/icesoft/icefaces/samples/showcase/components/calendar/SelectInputDateBean.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/resources/css/royale/royale.css
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/component/src/com/icesoft/faces/component/CSS_DEFAULT.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/samples/component-showcase/web/inc/components/selectInputDate.jspx
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/resources/css/xp/xp-portlet.css
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDate.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-selectInputDate-props.xml
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/resources/css/xp/xp.css
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/component/src/com/icesoft/faces/component/util/CustomComponentUtils.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/component/src/com/icesoft/faces/component/selectinputdate/SelectInputDateRenderer.java
        Hide
        Mark Collette added a comment -

        Backported to ICEfaces 1.6.2, along with ICE-2150.

        Show
        Mark Collette added a comment - Backported to ICEfaces 1.6.2, along with ICE-2150 .
        Mark Collette made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Marcin Dabrowski added a comment -

        When I include backport sources from ICE-2150 to my 1.6.1 version, it seems that during validation for selectInputDate it not check is it required.
        Can you test it with yours 1.6.2 development branch?

        Show
        Marcin Dabrowski added a comment - When I include backport sources from ICE-2150 to my 1.6.1 version, it seems that during validation for selectInputDate it not check is it required. Can you test it with yours 1.6.2 development branch?
        Hide
        Sebastien Pirlot added a comment -

        I'm having the exact opposing issue using 1.7DR1!

        when the page is entered initially and there is a pre-existing value for the date then the format is applied, but as soon as a partialsubmit occurs, the format will revert to the component's default format settings (DD/mm/yyyy).

        Show
        Sebastien Pirlot added a comment - I'm having the exact opposing issue using 1.7DR1! when the page is entered initially and there is a pre-existing value for the date then the format is applied, but as soon as a partialsubmit occurs, the format will revert to the component's default format settings (DD/mm/yyyy).
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Mark Collette [ mark.collette ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Thiem
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: