[jboss-user] [JBoss Seam] - Re: Seam 2.0 BETA : convertEntity / SelectOneMenu problem

vwiencek do-not-reply at jboss.com
Mon Aug 20 11:47:19 EDT 2007


OK, 

now I have in my managed bean :


  | 	@In(required = false)
  | 	private City selectedCity;	
  | 	public City getSelectedCity() {return selectedCity;}
  | 	public void setSelectedCity(City c) {this.selectedCity = c;}
  | 

with interfaces declared .....
<h:selectOneMenu 
  |    id="selectCity"
  |    value="#{selectedCity}" 
  |    required="false">
  | 							
  |    <s:selectItems 
  |       value="#{register.cities}" 
  |       var="c"
  |       label="#{c.postalCode} - #{c.name}" 
  |    />
  | 		   						
  |     <s:convertEntity />
  | </h:selectOneMenu>

When I submit my form, seam performes validation, but my selectOneMenu validation fails, and then, values are never submited ..... why a selectOneMenu validation can fail ?

Thanks .....

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075934



More information about the jboss-user mailing list