From: "Tim Dawson" <[EMAIL PROTECTED]>
> I'd much rather see the above than a i18n:formatDate or whatever, because
at
> least you provide some additional formatting, e.g. {0,date,medium} vs.
> {0,date,short}.
I was thinking more of having additional formatting tags explicitly for
Date, Number and Currency which would then allow for the explicit provision
of either a style (short/medium/long) or an explicit formatting pattern to
be used if necessary. Since there is some cross over with existing
functionality, I thought the i18n tag library might be a good place to put
the new tags.
Something along the lines of:-
<i18n:formatDate value="<%= new Date() %>" style="short"/>
<i18n:formatDate value="<%= new Date() %>" pattern="yyyy.MMMMM.dd GGG
hh:mm"/>
<i18n:formatNumber value="<%= 12345.1234 %>" pattern="##,###,###.##"/>
<i18n:formatCurrency value="<%= 12345.1234 %>" pattern="##,###,###.##"/>
Similar parsing tags which take a String and create a Date / Number could be
done too.
Just a thought...
James
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com