Hiya,

Having some diffs getting validation working on a select item list.


  | <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:


  |     @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.
I think I may be missing something silly...?
Perhaps someone can point me in the right direction?

thanks

marty

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031589#4031589

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031589
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to