jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • DisplayTag
  • DISPL-217

html table not assigning right id

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: None
  • Component/s: HTML Generation
  • Labels:
    None
  • Application server:
    tomcat 5.5.9

Description

When one uses the displaytag twice in a table it sets the same id for both tables... It showed up in one of my apps but it does the same thing in the example page on your site(http://displaytag.homeip.net/example-twotables.jsp)...

I'm using firefox 1.0.4 on a linux box...

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
J. David Mendoza R. added a comment - 08/Jun/05 4:14 PM
It's a workaround, if you use the id property in the tables you want to display in the same page, displaytag gets confused and uses the same name for both... but if you use the uid property, it just doesn't happen anymore...

Hope it helps...
Show
J. David Mendoza R. added a comment - 08/Jun/05 4:14 PM It's a workaround, if you use the id property in the tables you want to display in the same page, displaytag gets confused and uses the same name for both... but if you use the uid property, it just doesn't happen anymore... Hope it helps...
Hide
Permalink
J. David Mendoza R. added a comment - 08/Jun/05 4:15 PM
Thnx...
Show
J. David Mendoza R. added a comment - 08/Jun/05 4:15 PM Thnx...
Hide
Permalink
Michael Motal added a comment - 24/Jun/05 10:58 AM
The workaround doesn't work. I still get two tables with exactly the same ID in the resultant html.
Show
Michael Motal added a comment - 24/Jun/05 10:58 AM The workaround doesn't work. I still get two tables with exactly the same ID in the resultant html.
Hide
Permalink
francois pfister added a comment - 30/Jun/05 4:45 AM
problem is here:
ELTableTagBeanInfo line 88: two different properties with the same setter

      proplist.add(new PropertyDescriptor("id", //$NON-NLS-1$
                ELTableTag.class, null, "setUid")); //$NON-NLS-1$

      proplist.add(new PropertyDescriptor("uid", //$NON-NLS-1$
                ELTableTag.class, null, "setUid")); //$NON-NLS-1$
Show
francois pfister added a comment - 30/Jun/05 4:45 AM problem is here: ELTableTagBeanInfo line 88: two different properties with the same setter       proplist.add(new PropertyDescriptor("id", //$NON-NLS-1$                 ELTableTag.class, null, "setUid")); //$NON-NLS-1$       proplist.add(new PropertyDescriptor("uid", //$NON-NLS-1$                 ELTableTag.class, null, "setUid")); //$NON-NLS-1$

People

  • Reporter:
    J. David Mendoza R.
Vote (1)
Watch (2)

Dates

  • Created:
    24/May/05 12:24 PM
    Updated:
    30/Jun/05 4:45 AM
    Resolved:
    08/Jun/05 4:14 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.