Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.2, 1.7DR#2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Tomcat5
Description
For SelectManyCheckBox with attributes required=true & partialSubmit=true, no validation error is thrown when nothing is selected and a partial submit is triggered.
Note: validation works fine with full page submit.
Note: validation works fine with full page submit.
This is a special case, and its related to the how the ids of the selectManyCheckbox component is being rendered.
ICEfaces tries to set the "required" attribute to "false" on all components except the one who caused the partialSubmit, and the framework identify about that component by the 'ice.event.captured' request parameter. However when you click on a checkbox it doesn't send the id of the "component" instead it sends the id of the "chcekbox". That is why algorithm does not find the selectManyCheckbox component and that is why its required attribute gets set to false as well.
(e.g.)
<selectManyCheckbox id="mycomponent">
<item a>
<item b>
<selectManyCheckbox>
Rendered HTML:
<table id="mycomponent">
<tr><td><input id="mycomponent:_0"</td></tr> (clicking on the first checkbox wil send the "mycomponent:_0", however server will be expecting "mycomponent")
<tr><td><input id="mycomponent:_1"</td></tr>
</table>