The following comment has been added to this issue: Author: Thomas Dudziak Created: Thu, 9 Dec 2004 8:48 AM Body: The problem is that there are reasons to use the column body instead of coding it into the decorator. Take for example the famous link example. Now if I want to create a struts link for the column using a forward (<html:link forward="...>) where a property of the decorator (e.g. "name" which is not present in the original bean) is required, then I cannot easily do this in the decorator. However if the decorator is exposed then this is rather easy in the column body:
<jsp:useBean name="props" class="java.util.HashMap"/> <!-- Init link parameter map with common parameters: --> ... <display table id="row" name="mylist" decorator="bar.FooDecorator> <display:column title="name" > <!-- Add current name to the link parameters --> <c:set target="props" property="name" value="${row.name}"/> <html:link forward="/showFoo" name="props"/> </display:column> </display:table> --------------------------------------------------------------------- View this comment: http://jira.codehaus.org/browse/DISPL-143?page=comments#action_27722 --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/DISPL-143 Here is an overview of the issue: --------------------------------------------------------------------- Key: DISPL-143 Summary: Table does not use decorators when providing implicit objects Type: Bug Status: Closed Priority: Major Resolution: WON'T FIX Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: DisplayTag Components: Decorators Fix Fors: 1.0 RC2 Versions: 1.0 RC2 Assignee: fabrizio giustina Reporter: Thomas Dudziak Created: Mon, 29 Nov 2004 7:54 AM Updated: Thu, 9 Dec 2004 8:48 AM Description: When doing something along the lines of: <display table id="row" name="mylist" decorator="bar.FooDecorator> <display:column title="name" > <c:out value="${row.name}"/> </display:column> </display:table> then the implicit 'row'-object used in the JSTL tag is not the FooDecorator instance but the object from the list. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel