Details
-
Type: Improvement
-
Status: Closed
-
Priority: 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.
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.
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"
{dateAjax.dateTextChangeListener}listener="#
"
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