maxLength abbreviations don't get a mouse-over when original exceeds maxLength 
with 1, 2 or 3 characters - SOLUTION INCLUDED !
------------------------------------------------------------------------------------------------------------------------------

         Key: DISPL-262
         URL: http://jira.codehaus.org/browse/DISPL-262
     Project: DisplayTag
        Type: Bug
  Components: HTML Generation  
    Versions: 1.1    
    Priority: Minor
     Fix For: 1.1


IF you have a column like this:
<display:column titleKey="description"  property="description" maxLength="40"/>
THEN
- this columns outputs text that are max. 40 chars long with an appended "..."  
if the orig. text was more than 40 long
- this columns adds a mouse over if the orig. text was more than 43 chars long !

So what happens is that texts that are 42 letters long get abbreviated to 40 
chars with "..." appended,
but will not have a mouse over, so your customer misses information.

SOLUTION:
Change in Column.java the following:
   if (choppedValue.length() < fullValue.length())
replace this by:
    if (!choppedValue.equals(fullValue))

Kind regards,
Maarten Hogendoorn
[EMAIL PROTECTED]


-- 
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to