[ http://jira.codehaus.org/browse/DISPL-174?page=all ] fabrizio giustina closed DISPL-174: -----------------------------------
Resolution: Fixed Fix Version: 1.1 fix dropped for 1.1. Test added > to Mike Robinson - sometimes "title" - sometimes not > ---------------------------------------------------- > > Key: DISPL-174 > URL: http://jira.codehaus.org/browse/DISPL-174 > Project: DisplayTag > Type: Bug > Components: Build/distribution > Versions: 1.0 > Reporter: George McMeen > Priority: Minor > Fix For: 1.1 > > > 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 -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel