[jboss-user] [JBoss Seam] - Validation oracle date field

igorarbizu do-not-reply at jboss.com
Thu Jul 12 11:52:00 EDT 2007


Hi, 
When I try to save a form generated from seam-gen with a  date field (oracle 9i, type Date) I get this error: model validation:failed, with the right format, and get no more clues anywhere. These are the relevant parts of the code:
In UserEdit.xhtml:
<s:decorate id="startdateDecoration" template="layout/edit.xhtml">
  |                 <ui:define name="label">startdate</ui:define>
  |                 <h:inputText id="startdate"                            
  |                           value="#{memberHome.instance.startdate}" required="true">
  |                     <s:convertDateTime  pattern="MM/dd/yyyy"/>                   
  |                 </h:inputText>
  |             </s:decorate>

and in the correspondig entity (User):
       private Date startdate;
  |                 .....
  |                 @Basic @Temporal(TemporalType.DATE) 
  |                 @NotNull
  | 	public Date getStartdate() {
  | 		return this.startdate;
  | 	}
  |                 public void setStartdate(Date startdate) {
  | 		this.startdate = startdate;
  | 	}
  | 
Any idea?? I've been looking for a solution for a while, in the forum etc but 
I can't go on
Thanks

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

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



More information about the jboss-user mailing list