Message:

   The following issue has been resolved as FIXED.

   Resolver: fabrizio giustina
       Date: Tue, 2 Nov 2004 8:31 AM

the TableTagExtraInfo class has been fixed to avoid declaring a variable when id is 
not a request-time attribute value.

This means that that you can freely use variable ids, but if the value is not a 
request time attribute you will not be able to use an <id> variable in snippets:

<% String myId = "row">
<display:table id="<%=row%>" ...>
  <display:column><%=row%></display:column> <-- will not work
  <display:column><%pageContext.getAttribute("row")></display:column> <-- works

this is a minor annoyment and the use of the declarated variable will be deprecated at 
all, the preferred way is to always use pageContext.getAttribute() (or jstl tags in 
the EL version)

As reported in the already cited tomcat issue report 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21711 , this will still fails in 
earlier versions of tomcat 5 (< 5.0.4). However, since this is reported to work on any 
other tomcat version and on other containers (weblogic, websphere, orion), I don't 
plan to make modification for these old tomcat versions.

Code will be in CVS for next rc2 nightly build.


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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-2
    Summary: Ability to use java var in id attribute in tabletag
       Type: Bug

     Status: Resolved
   Priority: Minor
 Resolution: FIXED

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: DisplayTag
 Components: 
             Container Compability
   Fix Fors:
             1.0 RC2
   Versions:
             1.0 RC1

   Assignee: fabrizio giustina
   Reporter: fabrizio giustina

    Created: Tue, 21 Sep 2004 3:39 PM
    Updated: Tue, 2 Nov 2004 8:31 AM

Description:
====
imported from sf tracker
id 813006 
submitted by Bard A. Evjen - bardman
http://sourceforge.net/tracker/index.php?func=detail&group_id=73068&atid=536613&aid=813006
 
====


I would appreciate the ability to specify the id attribute
as a java variable, like

<%
for(int i=0;i &lt; vec.size(); i++) {
String idString = "table"+i
%>

<display:table id="<%=idString%> name="compRows" scope="session" width="100%">


---------------------------------------------------------------------
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:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to