Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 1.5.3
-
Component/s: Framework
-
Labels:None
-
Environment:unknown
-
ICEsoft Forum Reference:
Description
Having some diffs getting validation working on a select item list.
Code:
<s:validateAll>
<tr>
<td class="cntForm"><h:outputText value="#{msgs.newCustomerRegion} "/></td>
<td class="cntForm">
<h:selectOneListbox id="region" required="true" size="3" value="#{customer.region}" converter="GeographicalRegionConverter">
<f:selectItems value="#{selectItems.regions}" />
</h:selectOneListbox> *
</td>
<td><h:message for="region" styleClass="cntError" /></td>
</tr>
</s:validateAll>
backing bean:
Code:
@OneToOne
@NotNull(message="Please select a region")
public GeographicalRegion getRegion() {return region;}
public void setRegion(GeographicalRegion region) {this.region = region;}
but when I click through without setting a value... it just doesn't fire the validation.
Code:
<s:validateAll>
<tr>
<td class="cntForm"><h:outputText value="#{msgs.newCustomerRegion} "/></td>
<td class="cntForm">
<h:selectOneListbox id="region" required="true" size="3" value="#{customer.region}" converter="GeographicalRegionConverter">
<f:selectItems value="#{selectItems.regions}" />
</h:selectOneListbox> *
</td>
<td><h:message for="region" styleClass="cntError" /></td>
</tr>
</s:validateAll>
backing bean:
Code:
@OneToOne
@NotNull(message="Please select a region")
public GeographicalRegion getRegion() {return region;}
public void setRegion(GeographicalRegion region) {this.region = region;}
but when I click through without setting a value... it just doesn't fire the validation.
Issue Links
- depends on
-
ICE-1380 required="true" does not have any effect
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Duplicate of
ICE-1380.