The following comment has been added to this issue:

     Author: Keith Garry Boyce
    Created: Fri, 15 Oct 2004 12:16 AM
       Body:
What's the ETA to fixing this????
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/DISPL-16?page=comments#action_25390

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-16
    Summary: Dynamic Multiple tables on one page not working
       Type: Bug

     Status: Unassigned
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: DisplayTag
 Components: 
             Tag Library
   Versions:
             1.0 RC2

   Assignee: 
   Reporter: fabrizio giustina

    Created: Sat, 25 Sep 2004 5:03 AM
    Updated: Fri, 15 Oct 2004 12:16 AM

Description:
====
imported from sf tracker
id 1010133 
submitted by Garry - garpinc
http://sourceforge.net/tracker/index.php?func=detail&group_id=73068&atid=536613&aid=1010133
 ====



Temporary work around for rc2

1) change tld file to point to your new class
<tagclass>org.displaytag.tags.TableTag2</tagclass>
2) add attribute
<attribute>
<!--An implicit variable of this name will be created and
placed into NESTED scope. The object is also
added to pageContext under this name.-->
<name>tableId</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>

3) Put below class in your project

-----------------------
NB: Developers should implement fix differently probably
in
private String encodeParameter(String parameterName);

method

/*
* TableTag2.java
*
* Copyright 2004 by Electronic Data Systems
* Corporation. All rights reserved.
*
* An unpublished work created Aug 5, 2004, 2004. This
work is a
* trade secret of EDS and unauthorized use or copying
* is prohibited.
*
*/
package org.displaytag.tags;

import java.lang.reflect.Field;

import org.displaytag.util.ParamEncoder;

/**
* @author jztb88
*
* TODO To change the template for this generated
type comment go to
* Window - Preferences - Java - Code Style - Code
Templates
*/
public class TableTag2 extends TableTag {

private String tableId;

/**
* @return Returns the tableId.
*/
public String getTableId() {
return tableId;
}

/**
* @param tableId The tableId to set.
*/
public void setTableId(String tableId) {

try {
Field fld =
TableTag.class.getDeclaredField("paramEncoder");
fld.setAccessible(true);
if (fld.get(this) == null) {
fld.set(this,new
ParamEncoder(this.id + this.tableId));
}
} catch (SecurityException e) {
// TODO Auto-generated
catch block
e.printStackTrace();
} catch (NoSuchFieldException e) {
// TODO Auto-generated
catch block
e.printStackTrace();
} catch (IllegalArgumentException e)
{
// TODO Auto-generated
catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated
catch block
e.printStackTrace();
}
this.tableId = tableId;


}



}


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