The following comment has been added to this issue:

     Author: fabrizio giustina
    Created: Tue, 5 Oct 2004 8:06 AM
       Body:
This is not a bug but the expected behaviour: all the column attributes are only 
evaluated once, only the body of the column tag is evaluated during iteration.
Evaluting column attributes at each iteration will lead to a big performance 
degradation, so we are not going to allow this now.

Leaving as a wish for displaytag 1.1: we will probably add a different way to 
dinamically change column attributes (style/class).
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/DISPL-49?page=comments#action_24972

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/DISPL-49

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-49
    Summary: style of column cannot be dynamically changed
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: DisplayTag
 Components: 
             Tag Library
   Versions:
             1.0 RC1

   Assignee: 
   Reporter: Ryan Kirkendall

    Created: Mon, 4 Oct 2004 3:38 PM
    Updated: Tue, 5 Oct 2004 8:06 AM

Description:
<display-el:table  ...>

  <c:if test="${somelogic}">
    <c:set var="style">background-color:red</c:set>
  </c:if>
  <c:if test="${somelogic other logic}">
    <c:set var="style">background-color:blue</c:set>
  </c:if>

  <display-el:column style="${style}" .../>

</display-el:table>


the style of the last column set in this iteration will be the
style for the entire column in the table.

if during the 1st iteration style == red 
and during last iteration style == blue 
the entire column first, last and everything in between row-wise will
blue


---------------------------------------------------------------------
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



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to