[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Tooltip for shortened labels?  XML
Forum Index -> Development
Author Message
kabat

Power User

Joined: 10/12/2007 10:12:44
Messages: 78
Offline

Hi,

as you know our software is translated in different languages. Some of the foreign languages have very long texts (like spanish or french). We always try to build our jsp files that way that all texts are readable. But in some cases it's not possible if we don't want to have very wide screens.

Is it possible for you to display a tooltip for labels if the corresponding text does not fit (additionally to the three dots you display in that case)?

Regards, Agnes
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...idea is nice, to automatically popuplate tooltip field if text is truncated.
Added to our list... - mid term, not short term...

Björn

Björn Müller, CaptainCasa GmbH
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

i don't really know, but maybe you could use the <t:textpane> control instead of <t:label>.
textpane does a line break instead of cutting the text, perhaps it's an workaround till björn provides this neat new future we also appreciate.
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...in principal this is right with TEXTPANE...

But: please do not use TEXTPANE too much on one page. TEXTPANE is quite performance-taking especially if used with percentage width sizing:

The height of the textpane depends on the width, if the width is variable itself (percentages...) then the page is first layouted to find out the widths and then needs to be re-layouted to adapte the variable panes...

So, I would not propagate the too-many usage of TEXTPANEs in the page...

Björn

PS: ...but in principal you were right! ;-)

Björn Müller, CaptainCasa GmbH
kabat

Power User

Joined: 10/12/2007 10:12:44
Messages: 78
Offline

Hi,

i'm currently using the version 2_5_20091005_4 and was wondering if the described feature is already implemented.

As it seems, not yet

Is it still on your road map?

Agnes
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...LABEL-TOOLTIP is available, but no automated popuplation if truncated...

We will add this, now that you ask again ;-) Next update will (should) contain the feature...

Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...contained in today's update...
Björn

Björn Müller, CaptainCasa GmbH
kabat

Power User

Joined: 10/12/2007 10:12:44
Messages: 78
Offline

Thank you very much!
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

is this already possible to only show LABEL-TOOLTIP if label is shortened ?

i haven't found an attribute for that. There is a Label-Tooltip which is always displayed (shortened or not) and there is LABEL-POPUPTEXTONCLICK but no thing like TOOLTIPIFSHORTENED.

 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team