[jboss-user] [JBoss Seam] - Re: Seam Pros - Need your opinion...Date vs Long
goku2
do-not-reply at jboss.com
Thu Sep 13 12:07:03 EDT 2007
Use
| @Basic
| @Temporal(TemporalType.TIMESTAMP)
| private Date someDate;
|
It will store the timestamp and you could use the date class. I think it can work with Calendar too.
If you want the time represented in milliseconds sine the Epoch(1/jan/1970) use the method .getTime() from the Date class.
In your .xhtml use
| <h:outputText value="#{someBean.someDate}">
| <s:convertDateTime pattern="dd/MM/yyyy H:mm" />
| </h:outputText>
|
to show the date.
Hope this helps
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084050#4084050
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084050
More information about the jboss-user
mailing list