Thanks for the ideas, but the truncating itself is not the main problem. (I could easily truncate the data in the SortableDataProvider.) The main problem that requires met to dive deeply into the code is my requirement to also show the full data in a tooltip.

Regards,
Linda

Iain Reddick wrote:
Create some kind of generic StringTruncatingModel that does the "..." truncation on getObject().

In DataTable.populateItem(), wrap the row model in a StringTruncatingModel, before passing to the Label being used to show the string?

Linda van der Pal wrote:
I thought it would be a cool idea to truncate the data in my table, so the data isn't spread over several lines in the table row. It should then be possible to read the complete content in a tooltip. After digging into the code of the AjaxFallbackDefaultDataTable I found that to do this I would have to alter/copy the entire structure, as it seemed the code I need to alter is inside AbstractDataGridView.

This seems like an aweful lot of work for such a relatively small feature. So my question is, has anybody ever tried this before? And even if not, do you have a better idea how to tackle this?

So I want the content of a single field to go from this:

Struts: the
complete
reference

to

Struts: the... (with a tooltip listing the whole title)


Regards,
Linda

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.65/2322 - Release Date: 08/23/09 18:03:00



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to