What component are you binding the "translator" parameter to? For tables I usually use the "columns" parameter to pass in an ognl string that includes calls to format my dates with a formatter object I've statically setup in a page. Something like columns="col1:formatter.format(col1), col2:col2 " ?
On 6/23/06, Bode, Bianca <[EMAIL PROTECTED]> wrote:
Hi guys, I've tried everything I could come up with to display my Dates in a certain format. Unfortunately, none of them are working: what am I doing wrong?? Currently displayed like this: 2006-06-15 09:33:37.0 Already tried: In .jwc: <bean name="dateTranslator" class="org.apache.tapestry.form.translator.DateTranslator"> <set name="pattern" value="literal:yyyy-mm-dd"/> </bean> <binding name="translator" value="bean:dateTranslator"/> Also tried in .jwc: <binding name="translator" value="translator:date, pattern=yyyy-mm-dd"/> Also tried setting the translator in the template instead of the page. None of this seems to work. I was thinking maybe this doens't work because I'm trying to display these Dates insides a Contrib:Table.... Anyone? Best regards, Bianca. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind.