Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Beta1
-
Fix Version/s: 3.2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Tomcat 7
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
JSF 2 adds a new attribute to f:selectItem - noSelectionOption. This is very useful in terms of having a default selection like '-Select-' not being recognized as a selection and having validation like 'required' being fired when the component is set to this value.
In our stock JSF2 training application, when we submit the form, the h:selectOneMenu component will have the "required" validation message when the component defaults to the first '-Select-' item that has the noSelectionOption set to "true".
When ICEfaces is added to the application the validation message is "form:country:Validation Error: Value is not valid".
ICEfaces should be generating the required message.
In our stock JSF2 training application, when we submit the form, the h:selectOneMenu component will have the "required" validation message when the component defaults to the first '-Select-' item that has the noSelectionOption set to "true".
When ICEfaces is added to the application the validation message is "form:country:Validation Error: Value is not valid".
ICEfaces should be generating the required message.
Still can't reproduce. See screenshot-01.png.
{jobApplicant.country}Modified markup is like this:
<h:selectOneMenu id="country" value="#
" required="true" requiredMessage="Country must be entered">