[jboss-user] [JBoss Seam] - Re: <h:selectOneListBox> & <s:convertDateTime>

pdepaepe do-not-reply at jboss.com
Wed Jul 25 12:07:37 EDT 2007


I become quite crasy about this issue.

My Entity:

anonymous wrote :    
  | @Basic @Future @Temporal(TemporalType.TIMESTAMP)
  |    public Date getStart()
  |    {
  |       return start;
  |    }
  | 
  |    public void setStart(Date start)
  |    {
  |      this.start = start;
  |    }
  | 

The way i test my select list:

anonymous wrote :                 
  | @Transient
  | public ArrayList getAvailableStarts(){
  |                 ArrayList si = new ArrayList();
  |                 for(int i = 0; i < 3; i++){
  |                         Date d = new Date()
  |                         si.add(new SelectItem(d, df.format(d)));
  |                 }
  |                 return si;
  | }
  | 

Xhtml :

anonymous wrote :                         <h:selectOneListbox value="#{sV.start}">
  |                                 <s:convertDateTime pattern="MM/dd/yyyy"/>
  |                                 <f:selectItems value="#{sV.availableStarts}" />
  |                         </h:selectOneListbox>
  | 

Return the three present dates. If i submit the @Future returns well that my date have to be in the future. If i remove the annotation, it returns that the option is not valid.
Any idea please?

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

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



More information about the jboss-user mailing list