ICEfaces
  1. ICEfaces
  2. ICE-8242

ace:dateTimeEntry - default value of labelPosition can cause unwanted conversion errors

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.BETA2
    • Fix Version/s: 3.1.0.RC1, 3.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 3.1.0 BETA2
    • Assignee Priority:
      P1
    • Affects:
      Compatibility/Configuration
    • Workaround Exists:
      Yes
    • Workaround Description:
      Change the labelPosition attribute to a different value than inField.

      Description

      When the label attribute is set for the ace:dateTimeEntry its value is used inside the input field. This can cause a conversion error when the form is submitted as the String label is not a valid date.

        Activity

        Arran Mccullough created issue -
        Hide
        Arran Mccullough added a comment -

        Attached test case that shows issue.

        Steps:

        • Run welcomeICEfaces.jsf
        • Click the Submit button, conversion error is shown.
        Show
        Arran Mccullough added a comment - Attached test case that shows issue. Steps: Run welcomeICEfaces.jsf Click the Submit button, conversion error is shown.
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment Case11349Example.war [ 14562 ]
        Attachment Case11349Example.zip [ 14563 ]
        Arran Mccullough made changes -
        Attachment Case11349Example.war [ 14562 ]
        Arran Mccullough made changes -
        Attachment Case11349Example.zip [ 14563 ]
        Arran Mccullough made changes -
        Attachment Case11349Example.war [ 14564 ]
        Attachment Case11349Example.zip [ 14565 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 3.1.0.RC1 [ 10337 ]
        Fix Version/s 3.1 [ 10312 ]
        Assignee Priority P1
        Assignee yip.ng [ yip.ng ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #29494 Wed Jun 13 15:59:58 MDT 2012 yip.ng ICE-8242: ace:dateTimeEntry - default value of labelPosition can cause unwanted conversion errors.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/jquery/ui/jquery-ui.js
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java
        Hide
        yip.ng added a comment -

        In-field label handling relies on focus and blur events. In this simple scenario there is neither before the submit. Had to resort back to using dummy name attribute as flag to detect on server. (These added non-trivial complexities are caused by our requirement that the label could be a valid entered value.)

        Note that the framework focus management can occasionally behave inconsistently. See http://jira.icesoft.org/secure/attachment/14555/screenshot-04.png. That is not a bug in the in-field label handling.

        Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\resources\icefaces.ace\jquery\ui\jquery-ui.js
        Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java
        Completed: At revision: 29494

        Show
        yip.ng added a comment - In-field label handling relies on focus and blur events. In this simple scenario there is neither before the submit. Had to resort back to using dummy name attribute as flag to detect on server. (These added non-trivial complexities are caused by our requirement that the label could be a valid entered value.) Note that the framework focus management can occasionally behave inconsistently. See http://jira.icesoft.org/secure/attachment/14555/screenshot-04.png . That is not a bug in the in-field label handling. Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\resources\icefaces.ace\jquery\ui\jquery-ui.js Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java Completed: At revision: 29494
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Salesforce Case []
        Affects [Compatibility/Configuration]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            yip.ng
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: