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

        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
        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.
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: