On 14.10.2010 13:49, kamath_svk wrote: > i want to know how to format the java's calendar object in tapestry ? > i tried to format using > 1. "<t:output format="literal:MMM yyyy" value="celebrity.dateOfBirth"/>" & > 2. "<tx:datefield t:id="celebrity.dateOfBirth"/>" with > xmlns:tx="tapestry-library:tapx"
Try a simple string: | <t:parameter name="dateOfBirthCell"> | ${birthDate} | </t:parameter> | public String getBirthDate() { | SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy"); | return format.format(celebrity.getDateOfBirth().getTime()); | } HTH Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org