2009/8/24 Thiago H. de Paula Figueiredo <thiag...@gmail.com>: > > One solution is to provide a new view block for your class dates. You'll > need to implement a DataTypeAnalyzer, return a "formatteddate" type for your > class dats, contribute it to the DataTypeAnalyzer service, then provide a > view and an edit block for it. Take a look at TapestryModule to find some > examples. >
OK thanks I'll dig around those tips. I did hit on a very simple solution for the moment - componentise the display and in it's template; <t:beandisplay object="message"> <p:messageTimestamp> ${message.messageTimestamp} </p:messageTimestamp> </t:beandisplay> But that gives date.toString() style output which is less than ideal but got me breathing space to look at a better solution as per your suggestions. I guess another way is to use t:output with a formatter configured in the component. It strikes me that maybe there just needs to to be a way to globally format dates (or specifiy the default) in the style of a java.text.dateformat template. For example one of the things I tried was adding messageTimestamp-format entries to the relevant .properties file for the page to see if that worked, but it did not. thanks scot -- let x=x - http://crazymcphee.net/x/ xray dubs - http://autonomous.org/music/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org