Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.1
-
Fix Version/s: 1.7.2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
-
ICEsoft Forum Reference:
Description
MenuRenderer.renderOptions() calls renderOption() for every item. In renderOption() it calls isValueSelected(), which calls getCurrentSelectedValues(), when there are no submitted values. getCurrentSelectedValues() calls getValue(). So, for every option, we can call the same getValue(), which can get very expensive with Seam.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Moved the code that gets the submittedValue and the value up out of the loop that iterates over the SelectItem(s). Changed any other renderers that relied on those methods.
TRUNK
Subversion 17611
ICEfaces 1.7 branch
Subversion 17612
icefaces\core\src\com\icesoft\faces\renderkit\dom_html_basic\MenuRenderer.java
icefaces\core\src\com\icesoft\faces\renderkit\dom_html_basic\RadioRenderer.java
icefaces\core\src\com\icesoft\faces\renderkit\dom_html_basic\SelectManyCheckboxListRenderer.java