ICEfaces
  1. ICEfaces
  2. ICE-7636

ace:dateTimeEntry add 'dateTextChange' event

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.RC1
    • Fix Version/s: 3.0.1, EE-3.0.0.GA
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Tomcat 7.0.12
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      When nesting ace:ajax inside an ace:dateTimeEntry tag and having a listener execute on the 'dateSelect' client event it is working when you select from the popup or use the input field and hit enter. However, it does not recognize using the input field to change the date and then tabbing out of the field.

      I tried using the valueChange and blur client events, however the method signature of the listener has an AjaxBehaviorEvent as a parameter and I cannot access the submitted value of the component from that event.

      Ideally, the dateSelect client event would also include the case where a new date is input and the user tabs out of the field.

        Activity

        Brad Kroeger created issue -
        Brad Kroeger made changes -
        Field Original Value New Value
        Assignee Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 3.0.1 [ 10282 ]
        Assignee Priority P2
        Assignee Ken Fyten [ ken.fyten ] yip.ng [ yip.ng ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28108 Thu Mar 01 11:58:42 MST 2012 yip.ng ICE-7636: ace:dateTimeEntry add onBlur to dateSelect Event.
        Files Changed
        Commit graph ADD /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/event/DateTextChangeEvent.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntry.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryMeta.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/datetimeentry/datetimeentry.js
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java
        Hide
        yip.ng added a comment - - edited

        Should use jQuery "change" event instead of blur event. See http://api.jquery.com/change/. To avoid misinterpretation, event is renamed to "dateTextChange". "dateText" is term used by jQuery datepicker API and documentation.

        <ace:ajax event="dateTextChange"
        listener="#

        {dateAjax.dateTextChangeListener}

        "
        render="selectedDate"/>

        public void dateTextChangeListener(DateTextChangeEvent event)

        { this.selectedDate = event.getDate(); System.out.println("event.getDateText() = " + event.getDateText()); }

        Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\resources\icefaces.ace\datetimeentry\datetimeentry.js
        Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntry.java
        Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryMeta.java
        Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java
        Adding: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\event\DateTextChangeEvent.java
        Completed: At revision: 28108

        Show
        yip.ng added a comment - - edited Should use jQuery "change" event instead of blur event. See http://api.jquery.com/change/ . To avoid misinterpretation, event is renamed to "dateTextChange". "dateText" is term used by jQuery datepicker API and documentation. <ace:ajax event="dateTextChange" listener="# {dateAjax.dateTextChangeListener} " render="selectedDate"/> public void dateTextChangeListener(DateTextChangeEvent event) { this.selectedDate = event.getDate(); System.out.println("event.getDateText() = " + event.getDateText()); } Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\resources\icefaces.ace\datetimeentry\datetimeentry.js Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntry.java Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryMeta.java Modified: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java Adding: C:\svn\ossrepo\icefaces3\trunk\icefaces\ace\component\src\org\icefaces\ace\event\DateTextChangeEvent.java Completed: At revision: 28108
        Ken Fyten made changes -
        Summary ace:dateTimeEntry add onBlur to dateSelect Event ace:dateTimeEntry add 'dateTextChange' event
        Salesforce Case []
        Ken Fyten made changes -
        Salesforce Case []
        Affects [Documentation (User Guide, Ref. Guide, etc.)]
        yip.ng made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #28227 Wed Mar 07 18:10:01 MST 2012 yip.ng ICE-7636: ace:dateTimeEntry add onBlur to dateSelect Event.
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryMeta.java
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/ace/component/resources/icefaces.ace/datetimeentry/datetimeentry.js
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntry.java
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java
        Commit graph ADD /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/ace/component/src/org/icefaces/ace/event/DateTextChangeEvent.java
        Hide
        Ken Fyten added a comment -

        Yip, need this change committed to the icefaces-3.0.x-maintenance branch asap pls.

        Show
        Ken Fyten added a comment - Yip, need this change committed to the icefaces-3.0.x-maintenance branch asap pls.
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Priority P2 P1
        Hide
        yip.ng added a comment -

        Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\resources\icefaces.ace\datetimeentry\datetimeentry.js
        Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntry.java
        Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryMeta.java
        Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java
        Adding: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\event\DateTextChangeEvent.java
        Completed: At revision: 28227

        Show
        yip.ng added a comment - Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\resources\icefaces.ace\datetimeentry\datetimeentry.js Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntry.java Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryMeta.java Modified: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\component\datetimeentry\DateTimeEntryRenderer.java Adding: C:\svn\ossrepo\icefaces3\branches\icefaces-3.0.x-maintenance\icefaces\ace\component\src\org\icefaces\ace\event\DateTextChangeEvent.java Completed: At revision: 28227
        yip.ng made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s EE-3.0.0.GA [ 10262 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P1

          People

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

            Dates

            • Created:
              Updated:
              Resolved: