You would write a separate class that either extends TableDecorator or 
implements DisplaytagColumnDecorator. From what you are describing I would go 
with the column decorator. From there you just use a DecimalFormat. 

Julia Young

On Aug 26, 2010, at 13:21, Curtis Garman <curt.gar...@gmail.com> wrote:

> I believe you need to write a separate class...it would be nice if common 
> decorators and comparators came shipped with displaytag
> 
> On Thu, Aug 26, 2010 at 11:09 AM, Ashlon <ash...@gmail.com> wrote:
> 
> Oh ok.   I've been looking at their documentation and all I found was
> Column Decorators
> 
> "You can also specify decorators that work on individual columns, this would
> allow you to come up with data specific formatters, and just reuse them
> rather then coming up with a custom decorator for each table that you want
> to show a formatted date for.
> 
> <display:table name="test">
>  <display:column property="id" title="ID" />
>  <display:column property="email" />
>  <display:column property="status" />
>  <display:column property="date"
> decorator="org.displaytag.sample.LongDateWrapper" />
> </display:table>"
> 
> Here are my questions-  Is the decorator code a separate java class or all
> the decorator code goes in the jsp where the displaytag stuff is at?
> 
> Thanks
> 
> 
> Rick.Wellman wrote:
> >
> > You need to write a decorator.  This is well documented on the
> > displaytag web site.
> >
> > -----Original Message-----
> > From: Ashlon [mailto:ash...@gmail.com]
> > Sent: Wednesday, August 25, 2010 2:48 PM
> > To: displaytag-user@lists.sourceforge.net
> > Subject: [displaytag-user] Formatting number column
> >
> >
> > Does DisplayTag provide a way to format a column of numbers into
> > megabytes?
> > So that 40448 would show up as 39.5kb.
> > --
> > View this message in context:
> > http://old.nabble.com/Formatting-number-column-tp29535915p29535915.html
> > Sent from the DisplayTag - General mailing list archive at Nabble.com.
> >
> >
> > ------------------------------------------------------------------------
> > ------
> > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> > Be part of this innovative community and reach millions of netbook users
> >
> > worldwide. Take advantage of special opportunities to increase revenue
> > and
> > speed time-to-market. Join now, and jumpstart your future.
> > http://p.sf.net/sfu/intel-atom-d2d
> > _______________________________________________
> > displaytag-user mailing list
> > displaytag-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >
> > ------------------------------------------------------------------------------
> > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> > Be part of this innovative community and reach millions of netbook users
> > worldwide. Take advantage of special opportunities to increase revenue and
> > speed time-to-market. Join now, and jumpstart your future.
> > http://p.sf.net/sfu/intel-atom-d2d
> > _______________________________________________
> > displaytag-user mailing list
> > displaytag-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >
> >
> 
> --
> View this message in context: 
> http://old.nabble.com/Formatting-number-column-tp29535915p29544136.html
> Sent from the DisplayTag - General mailing list archive at Nabble.com.
> 
> 
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> 
> 
> -- 
> Curtis Garman
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users 
> worldwide. Take advantage of special opportunities to increase revenue and 
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to