Message:

  A new issue has been created in JIRA.

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-174
    Summary: to Mike Robinson - sometimes "title" - sometimes not 
       Type: Bug

     Status: Unassigned
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: DisplayTag
 Components: 
             Build/distribution
   Versions:
             1.0

   Assignee: 
   Reporter: George McMeen

    Created: Wed, 12 Jan 2005 5:22 PM
    Updated: Wed, 12 Jan 2005 5:22 PM

Description:
Hello,

Mike mentioned this error in his Jan '05 post below.
The error can be consistantly replicated.
It goes like this:
if you set maxLength="28", the errant condition occurs when the length of text 
(inside your column) is 31 (with the title not written as it should).
if the length of text is 30 or 32 - it works fine.
if you set maxLength="24", the errant conditions occurs when length of text is 
27
if the length of text is 26 or 28 - it works fine.

meaning, maxLength + 3
since 3 is the length of the "...", I am guessing has to do with your 
comparison in Column.java
// chopped content? add the full content to the column "title" attribute
if (choppedValue.length() < fullValue.length())
{
 // clone the attribute map, don't want to add title to all the columns
 this.htmlAttributes = (HtmlAttributeMap) this.htmlAttributes.clone();
 // add title
 this.htmlAttributes.put(TagConstants.ATTRIBUTE_TITLE, 
HtmlTagUtil.stripHTMLTags(fullValue));
}

should be changed to:
        if (choppedValue.length() <= fullValue.length())

another "related" issue is that if (for example) maxLength is 24, you do not 
begin "title'ing"/"truncating"/"elipsing"/"..." until theh length of the 
content is 28 or longer (not 25 as one would expect).

again there seems to be a problem of "3" which likely takes place in the same 
function (above).

tia. George McMeen

http://sourceforge.net/mailarchive/message.php?msg_id=10526012

-----Original Message----- 
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]
On Behalf Of Mike Robinson 
Sent: 11 January 2005 01:37 
To: [EMAIL PROTECTED] 
Subject: Re: [displaytag-user] Problem with tooltip for display:table 
Sorry, I don"t have a solution, however I have noticed that DisplayTag 
sometimes generated the "title" attribute for the column and sometimes it does 
not. I have not yet found any consistency in this behavior. I was wondering if 
you looked at the html source do you see the "title" attribute for those fields 
that do not display? -Mike 


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



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to