-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all
Is there any way to force listheader to wrap text ? I have tried sclass="word-wrap" and multiline="true" in labels inside listheader but with no success. I am producing headers like:
<listheader width="50px"> <label value="${c:messages('a.message')}" sclass="word-wrap" multiline="true" /> </listheader>
So I can't use this solution: http://www.zkoss.org/forum/listComment/6864/.
Please help.
Regards
Adam
Only say that you would get the ListHeaders text from a properties file:
ZUL
label value="${c:messages('a.message')}"
JAVA
Listheader listheader1 = new Listheader(); listheader1.setLabel(Labels.getLabel("a.message"));
i3-label.properties
a.message={ first line second line }
best
Stephan
what are { ... the dots mean?
EDIT: Ah ok, i see the problem. In ZUL you ust use a <label> in the <listheader>
. . . <listheader id="listheader_OrderPosition_Quantity" sort="auto" width="10%"> <label multiline="true" value="${c:l('a.message')}" /> </listheader>
best
Stephan
Hi adam,
look one post back, i have edit my last post.
I mean the c:l stands for localisation.
PS: I,m afk for a few hours.
Please, post the lines for a.message from your i3-label.properties file.
Hmmmm, curious.
you can check two things.
1. Are you sure your properties file is saved as UTF-8 ?
( Eclipse/Preferences/General/Content-Types/Text/Java Properties File/ change to 'UTF-8' )
Have you tried with
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
value="${c:l('a.message')}"
Asked: 2010-07-27 10:21:14 +0800
Seen: 1,291 times
Last updated: May 30