Feature Requests item #1015480, was opened at 2004-08-24 18:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536616&aid=1015480&group_id=73068

Category: documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Will Glass-Husain (wglass)
Assigned to: Nobody/Anonymous (nobody)
Summary: add example of <display:column> with body to tutorial

Initial Comment:
Hi,

I've been noticing that new users again and again (me 
too, when I started) have a question like:

http://www.mail-archive.com/displaytag-user%
40lists.sourceforge.net/msg01625.html

***
New to using the display taglib and am stumped by this 
on. Is there anyway to put more
than one data column in a single table column? In my 
case, I'm trying to output names. 
The
names are stored as firstname, middlename, and 
lastname; each individual columns in the
database table. I'd like to output them like "lastname, 
firstname middlename" all in 
the
same column.
***

Usually there's at least one wrong or overly complicated 
answer (use a new property, use a Decorator) before 
the optimal answer: use <display:column> with a body.  
This tells me there's a lot of users out there who never 
learned this.  

I suggest an example of this be added VERY 
PROMINENTLY to the website.  Maybe in the tutorial 
page under basic usage.  (It is pretty basic - I use it all 
the time).
http://displaytag.sourceforge.net/tut_basic.html

<display:column title="name" >
  <c:out value="${row.first_name}"/>
  <c:out value="${row.last_name}"/>
</display:column>
 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536616&aid=1015480&group_id=73068


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to