You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by bburton <be...@teachscape.com> on 2008/12/31 21:35:57 UTC

TreeTable nodes not displaying full title?

I'm working on a TreeTable object to be used for user-generated content, and
I was playing around with adding some nodes which had rather long names. It
seems that whenever the name for a node is longer than the allocated space
on the page for the row, nothing is displayed at all. I was thinking about
truncating the string and appending "..." with a tooltip displaying the full
value.

Now, I'm not sure if this is something that Wicket should have built into
the TreeTable object, or something that's more specific to what I'm trying
to do. It does seem a bit odd that nothing is being displayed at all. Does
anyone have any suggestions?
-- 
View this message in context: http://www.nabble.com/TreeTable-nodes-not-displaying-full-title--tp21236812p21236812.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: TreeTable nodes not displaying full title?

Posted by Matej Knopp <ma...@gmail.com>.
Truncating the value is one option, but you need to make sure that the
text will fit into the cell.

-Matej

On Wed, Dec 31, 2008 at 9:55 PM, bburton <be...@teachscape.com> wrote:
>
> Matej,
>
> Perhaps I could override the renderNode method in
> TreeTable.IRenderNodeCallback to truncate the value?
>
>
> Matej Knopp-2 wrote:
>>
>> Hi,
>>
>> unfortunately that's problem with TreeTable layout. There really isn't
>> a way around that currently apart from redoing TreeTable to use html
>> <table>.
>>
>> -Matej
>>
>> On Wed, Dec 31, 2008 at 9:35 PM, bburton <be...@teachscape.com>
>> wrote:
>>>
>>> I'm working on a TreeTable object to be used for user-generated content,
>>> and
>>> I was playing around with adding some nodes which had rather long names.
>>> It
>>> seems that whenever the name for a node is longer than the allocated
>>> space
>>> on the page for the row, nothing is displayed at all. I was thinking
>>> about
>>> truncating the string and appending "..." with a tooltip displaying the
>>> full
>>> value.
>>>
>>> Now, I'm not sure if this is something that Wicket should have built into
>>> the TreeTable object, or something that's more specific to what I'm
>>> trying
>>> to do. It does seem a bit odd that nothing is being displayed at all.
>>> Does
>>> anyone have any suggestions?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/TreeTable-nodes-not-displaying-full-title--tp21236812p21236812.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/TreeTable-nodes-not-displaying-full-title--tp21236812p21236940.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: TreeTable nodes not displaying full title?

Posted by bburton <be...@teachscape.com>.
Matej,

Perhaps I could override the renderNode method in
TreeTable.IRenderNodeCallback to truncate the value?


Matej Knopp-2 wrote:
> 
> Hi,
> 
> unfortunately that's problem with TreeTable layout. There really isn't
> a way around that currently apart from redoing TreeTable to use html
> <table>.
> 
> -Matej
> 
> On Wed, Dec 31, 2008 at 9:35 PM, bburton <be...@teachscape.com>
> wrote:
>>
>> I'm working on a TreeTable object to be used for user-generated content,
>> and
>> I was playing around with adding some nodes which had rather long names.
>> It
>> seems that whenever the name for a node is longer than the allocated
>> space
>> on the page for the row, nothing is displayed at all. I was thinking
>> about
>> truncating the string and appending "..." with a tooltip displaying the
>> full
>> value.
>>
>> Now, I'm not sure if this is something that Wicket should have built into
>> the TreeTable object, or something that's more specific to what I'm
>> trying
>> to do. It does seem a bit odd that nothing is being displayed at all.
>> Does
>> anyone have any suggestions?
>> --
>> View this message in context:
>> http://www.nabble.com/TreeTable-nodes-not-displaying-full-title--tp21236812p21236812.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/TreeTable-nodes-not-displaying-full-title--tp21236812p21236940.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: TreeTable nodes not displaying full title?

Posted by Matej Knopp <ma...@gmail.com>.
Hi,

unfortunately that's problem with TreeTable layout. There really isn't
a way around that currently apart from redoing TreeTable to use html
<table>.

-Matej

On Wed, Dec 31, 2008 at 9:35 PM, bburton <be...@teachscape.com> wrote:
>
> I'm working on a TreeTable object to be used for user-generated content, and
> I was playing around with adding some nodes which had rather long names. It
> seems that whenever the name for a node is longer than the allocated space
> on the page for the row, nothing is displayed at all. I was thinking about
> truncating the string and appending "..." with a tooltip displaying the full
> value.
>
> Now, I'm not sure if this is something that Wicket should have built into
> the TreeTable object, or something that's more specific to what I'm trying
> to do. It does seem a bit odd that nothing is being displayed at all. Does
> anyone have any suggestions?
> --
> View this message in context: http://www.nabble.com/TreeTable-nodes-not-displaying-full-title--tp21236812p21236812.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org