0

multiline listheader

asked 2010-07-27 10:21:14 +0800

adamzk gravatar image adamzk
207 1

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

delete flag offensive retag edit

13 Replies

Sort by ยป oldest newest

answered 2010-07-27 16:22:33 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-07-27 16:25:29 +0800

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

link publish delete flag offensive edit

answered 2010-07-28 02:43:44 +0800

adamzk gravatar image adamzk
207 1

I doesn't work... It displays only { ...

link publish delete flag offensive edit

answered 2010-07-28 03:51:10 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-07-28 03:59:23 +0800

what are { ... the dots mean?



<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<label value="${c:l('common.Order.No')}" />

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

link publish delete flag offensive edit

answered 2010-07-28 03:56:41 +0800

adamzk gravatar image adamzk
207 1

what are { ... the dots mean?

- it means that only { is shown. There are no dots.
I have got the taglib declaration.
What is c:l ?

link publish delete flag offensive edit

answered 2010-07-28 04:00:43 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-07-28 04:02:19 +0800

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.

link publish delete flag offensive edit

answered 2010-07-28 08:52:18 +0800

adamzk gravatar image adamzk
207 1

Now nothing is shown in the header

link publish delete flag offensive edit

answered 2010-07-28 13:38:43 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Please, post the lines for a.message from your i3-label.properties file.

link publish delete flag offensive edit

answered 2010-07-29 02:20:19 +0800

adamzk gravatar image adamzk
207 1

policy.no = {
Policy
no
}

link publish delete flag offensive edit

answered 2010-07-29 03:19:07 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

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')}"

link publish delete flag offensive edit

answered 2010-07-29 04:07:13 +0800

adamzk gravatar image adamzk
207 1

Everything is as you have written.


policy.no={
Policy
no
}

<listheader width="50px" >
<label value="${c:l('policy.no')}" multiline="true"/>
</listheader>

but nothing is shown :(

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-07-27 10:21:14 +0800

Seen: 1,291 times

Last updated: May 30

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More