Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7Beta1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
-
Affects:Sample App./Tutorial
Description
The selectInputText component already has a valueChangeListener, for being notified of a valid new value, which can be triggered by text being typed, tabbing out of the component, pressing enter, or selecting an entry from the popup list. What is lacks is a listener mechanism solely focussed on notifying when the user has typed, or deleted, character(s), and thus should change the popup list of options. This textChangedListener would still receive a ValueChangeEvent, except that the values in the event would be the changing submittedValue, not the converted and validated value. This would also allow for notifications when the partially entered text fails conversion or validation, as that would not trigger the valueChangeListener.
Issue Links
- blocks
-
ICE-1962 Using converters with ice:selectInputText
- Closed
Added a MethodBinding to SelectInputText called textChangeListener, which takes a TextChangeEvent parameter. TextChangeEvent extends ValueChangeEvent, and the whole things acts like ValueChangeEvent/ValueChangeListener. Although the TextChangeEvent is broadcast in the APPLY_REQUEST_VALUES phase and contains the SelectInputText's submittedValue as its new value.
It's purpose is to notify the application that the user has typed in a text fragment into the SelectInputText's text input field, allowing for the application to refine its selection list which will popup. In the case of converted and validated values, which require a complete
input of text, like with a Date, the textChangeListener may call FacesContext.getCurrentInstance().renderResponse() to skip over the validation, and proceed to rendering the popup selection list.
HEAD
Subversion 15838
icefaces\bridge\lib\extras\autocomplete_ext.js
icefaces\component-metadata\src\main\java\com\icesoft\metadata\generators\TagLibraryGenerator.java
icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-selectinputtext-props.xml
icefaces\component\src\com\icesoft\faces\component\facelets\IceComponentHandler.java
icefaces\component\src\com\icesoft\faces\component\selectinputtext\SelectInputText.java
icefaces\component\src\com\icesoft\faces\component\selectinputtext\SelectInputTextRenderer.java
icefaces\component\src\com\icesoft\faces\component\selectinputtext\TextChangeEvent.java
icefaces\core\src\com\icesoft\faces\renderkit\dom_html_basic\DomBasicRenderer.java
ICEfaces 1.6 branch
Subversion 15839
icefaces\bridge\lib\extras\autocomplete_ext.js
icefaces\component-metadata\src\main\java\com\icesoft\metadata\generators\TagLibraryGenerator.java
icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-selectinputtext-props.xml
icefaces\component\src\com\icesoft\faces\component\facelets\IceComponentHandler.java
icefaces\component\src\com\icesoft\faces\component\selectinputtext\SelectInputText.java
icefaces\component\src\com\icesoft\faces\component\selectinputtext\SelectInputTextRenderer.java
icefaces\component\src\com\icesoft\faces\component\selectinputtext\TextChangeEvent.java
icefaces\core\src\com\icesoft\faces\renderkit\dom_html_basic\DomBasicRenderer.java