Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA
-
Fix Version/s: EE-3.3.0.GA_P01, 4.0.BETA, 4.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Any
Description
ace:autoCompleteEntry, ace:comboBox, ace:selectMenu, and ace:simpleSelectOneMenu have some flaws in the way they handle conversion.
These components need to convert the values in option items when rendering their lists of results. This is to support complex objects being converted to a string and vice versa. When the values are plain strings or objects that translate easily to a string, there are usually no issues, but when using a custom object as the value, the conversion might not go as expected.
In short, all rendered values (not labels) of option items need to go through conversion from object to string at render time. The current value of the component will have to go through the same process. After decoding, the Renderer superclass methods can handle properly the conversion from string to object, so we don't have to interfere or override those methods.
These components need to convert the values in option items when rendering their lists of results. This is to support complex objects being converted to a string and vice versa. When the values are plain strings or objects that translate easily to a string, there are usually no issues, but when using a custom object as the value, the conversion might not go as expected.
In short, all rendered values (not labels) of option items need to go through conversion from object to string at render time. The current value of the component will have to go through the same process. After decoding, the Renderer superclass methods can handle properly the conversion from string to object, so we don't have to interfere or override those methods.
Issue Links
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #37712 | Thu Aug 29 09:53:27 MDT 2013 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/combobox/ComboBoxRenderer.java
MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/autocompleteentry/AutoCompleteEntryRenderer.java MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/selectmenu/SelectMenu.java MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/selectmenu/SelectMenuRenderer.java MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/simpleselectonemenu/SimpleSelectOneMenuRenderer.java |