On Wed, Jul 28, 2010 at 8:05 PM, Freddy Daoud <xf2...@fastmail.fm> wrote: > Hi Lev, > >> i'm using DisplayTag with Stripes. on occasion, i want to format >> a field sent to a DisplayTag table. for instance, consider: >> >> <d:table name="${actionBean.entries}" id="entry" requestURI="" >> defaultsort="1"> >> <d:column title="ID" property="id" sortable="true"/> >> <d:column title="Time" property="date" sortable="true"/> >> </d:table> >> >> i want to format 'property="date"' (the 2nd column) with something like: >> >> <s:text name="date" formatPattern="yyyy-MM-dd HH:mm" /> >> >> is there a way to achieve this? > > Sure there is, try this: > > <d:column title="Time" sortable="true"> > <s:format value="${entry.date}" formatPattern="yyyy-MM-dd HH:mm" /> > </d:column> > > Cheers, > Freddy > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users >
hi freddy, thank you for your reply. that helps. along those lines, is there a way to add formatting to the 'title' within a <s:layout-render> tag? for example: <s:layout-render name="/WEB-INF/jsp/common/layout_main.jsp" title="Matchups -- ${actionBean.date}"> is there a way for me add a formatPattern to ${actionBean.date} within the 'title'? thank you for your time and help. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users