customize format of #{currentDate} in seam?
I just got an answer to my seam question about displaying current date. Now I'm searching around to find the place to change the format for 开发者_C百科this feature. Is that possible?
Thanks.
<h:outputText value="#{currentDate}">
<f:convertDateTime type="date" pattern="dd.MM.yyyy" />
</h:outputText>
See here for details on the format.
Or use the Seam alternative:
<h:outputText value="#{currentDate}>
<s:convertDateTime type="date" dateStyle="medium" />
</h:outputText>
精彩评论