me too. What are the reasons for keeping TableDecorators around?

On Fri, 7 Nov 2003, Andy Pruitt wrote:

> > I thinkt the only thing decorators do that you can't do with 
> > a simple column body is the summary row at the bottom when 
> > using callbacks. See 
> > http://www.displaytag.org/example-callbacks.jsp for an example.
> 
> Fabrizio's FooterTag should allow you do the totals without a 
> TableDecorator.
> 
> I don't ever see a need for ColumnDecorators - I'd love to see them
> deprecated in the future.
> 
> 
> > 
> > 
> > On Fri, 7 Nov 2003, Paul McCulloch wrote:
> > 
> > > Since the addition of the implicit row object in 1.0-b1 
> > I've replaced all my
> > > ColumnDecorators with code in the body of the <column>tag. 
> > I think this is a
> > > far nicer approach - I can create a custom tag to do any 
> > custom formatting &
> > > re-use the tag anywhere - not just inside a <table>.
> > > 
> > > You can use this approach to solve the problem you mention 
> > with the jstl:
> > > 
> > > <display:column sort="true">
> > >   <fmt:formatDate value="${current.dateLogged}" type="date"
> > > dateStyle="SHORT" timeStyle="SHORT"/>
> > > </display:column>
> > > 
> > > Does anyone have any examples of formatting that can be 
> > done with a column
> > > decorator, but not via column body?
> > > 
> > > Paul
> > > 
> > > 
> > > -----Original Message-----
> > > From: Brad Smith [mailto:[EMAIL PROTECTED]
> > > Sent: 07 November 2003 03:38
> > > To: [EMAIL PROTECTED]
> > > Subject: [displaytag-devel] ColumnDecorator
> > > 
> > > 
> > > One use of the ColumnDecorator (a good addition) is to format dates
> > > correctly according to the locale of the user. In order for 
> > the locale
> > > information to be available to the decorator, a reference 
> > to the request
> > > object needs to be available, correct? Would it make sense 
> > to extend the
> > > ColumnDecorator class with a method for passing a reference to the
> > > request object? This could be called once at class initialization. 
> > > 
> > > Comments?
> > > 
> > > 
> > > 
> > 
> > -- 
> > John York
> > Software Engineer
> > CareerSite Corporation
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive?  Does it
> > help you create better code?   SHARE THE LOVE, and help us help
> > YOU!  Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > displaytag-devel mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/displaytag-devel
> > 
> > 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?   SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> displaytag-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-devel
> 

-- 
John York
Software Engineer
CareerSite Corporation



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to