【发布时间】:2011-06-11 17:28:00
【问题描述】:
如果#{myBean.birthdate} 是java.util.Calendar 或java.util.Date 类型,我是否可以使用现有函数在EL 本身内部对其进行格式化,输出类似于DateFormat 的@987654325 产生的输出@, MEDIUM,LONG abd FULL 输出类型?
我不想输出 #{myBean.birthdate} 的完整表单:Wed Jan 19 19:01:42 WIT 2011,我只喜欢 Jan 19, 2011 的简单输出>.
我应该改用#{formatBean.format(myBean.birthdate)} 吗?
【问题讨论】:
标签: jsf el date-formatting