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

HTML title not added with chopped value (column tag - maxLength attribute)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.1
  • Component/s: HTML Generation
  • Labels:
    None

Description

The bug applies to the maxLength feature in the columntag:

In org.displaytag.model.Column.createChoppedAndLinkedValue() Strings which are longer than maxLength are chopped and '...' is appended to them.

But a html title is only added to the column, if <code>if (choppedValue.length() < fullValue.length())</code> :

The appended '...' are forgotten. This results in Strings beeing chopped and no html-title added if (stringlength > maxLength and stringlength <= maxLength+3)

a possible quickfix:

<code>if (choppedValue.length() - 3 < fullValue.length())</code>

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
fabrizio giustina added a comment - 11/Sep/05 2:59 PM
fixed in CVS for 1.1
note that the fix is different form the suggested, since checking length - "..." could also return true for a String which was not cropped.
Show
fabrizio giustina added a comment - 11/Sep/05 2:59 PM fixed in CVS for 1.1 note that the fix is different form the suggested, since checking length - "..." could also return true for a String which was not cropped.

People

  • Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    26/Aug/05 4:49 AM
    Updated:
    11/Sep/05 2:59 PM
    Resolved:
    11/Sep/05 2:59 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.