# Lable content not wrapped in multiline

asked 2011-05-17 08:24:00 +0800

perfomance
51

Hi,
i am displaying some data in label that is coming from database.As this data can be large.I want to wrap the label to mult iline accordingly
i have tried following
<label id="sdf" style="word-wrap: break-word;" mulitline="true"/>

<label id="sdf" sclass="word-wrap"/>

<label id="sdf" style="word-wrap: break-word;"/>

but nothing is working.Content is displayed in one line and because of that we are unable to show the whole content.

Please suggest me the solution.

I am using zk 5.0.6

delete retag edit

## 4 Replies

Sort by » oldest newest

answered 2011-05-17 08:54:33 +0800

Steva77
1014 3
http://www.research.softe...

I do hope it was

multiline="true"
and not
mulitline="true"
as you wrote... ;)
I found
<label width="150px" value="If this product will be part of a bundle of products
that is sold to a consumer, please fill in the following information.
Please note that individual products must be created first before
they can be associated with a bundle." sclass="word-wrap" multiline="true"  />


in the post

http://www.zkoss.org/forum/listComment/14668
... have a look at what they say there...

answered 2011-05-18 01:16:59 +0800

perfomance
51

Thanks for the reply i have used multiline="true" in code itself it was typing mistake while posting on thread only.
However i think problem is in single word and content with the space.word is not broken.

In you example itself if you remove space then whole sentence will be in one line(No wrapping :( )This is where i got stuck.

i have also tried sclass="word-wrap:break-word" multiline="true" but no sucess if any body can help in this please reply.
i thin if its continuesword with no space than its is not wrapping in multiline.

answered 2011-05-18 01:51:06 +0800

Steva77
1014 3
http://www.research.softe...

Oh I see... not sure if a no-blank-space sentence can be splitted then... a word from tech guys might help here.

answered 2011-05-18 04:32:12 +0800

9393 3 7 16
http://www.oxitec.de/

Hmmm, i use zk ee 5.0.6 with this code and it works with multiline wrapped content. Try with a div around it.

			<div style="padding: 3px;">
<label value="@{controller.selectedSystemManagerUserRight.systemManagerRight.longtext}"
multiline="true" style="font-size: 10px;" />
</div>


See these pictures, where i have paste your text. picInsertingText, picMultilineLabel

best
Stephan

[hide preview]

## Stats

Asked: 2011-05-17 08:24:00 +0800

Seen: 519 times

Last updated: May 18 '11

## Related questions

Support Options
• Email Support
• Training
• Consulting
• Outsourcing