Lable content not wrapped in multiline

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

perfomance gravatar image perfomance

updated 2011-05-17 08:29:08 +0800

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 flag offensive retag edit

4 Replies

Sort by ยป oldest newest

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

Steva77 gravatar image Steva77 flag of Italy
1014 3

I do hope it was

and not
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

... have a look at what they say there...

link publish delete flag offensive edit

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

perfomance gravatar image perfomance

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.

<label width="150px" value="Ifthisproductwillbepartofabundleofproductsthatissoldtoaconsumer,pleasefillinthefollowinginformation.Pleasenotethatindividualproductsmustbecreatedfirstbeforetheycanbeassociatedwithabundle.pleasefillinthefollowinginformation.Pleasenotethpleasefillinthefollowinginformation.Pleasenotethpleasefillinthefollowinginformation.Pleasenotethpleasefillinthefollowinginformation.Pleasenoteth" sclass="word-wrap" multiline="true" />

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.

link publish delete flag offensive edit

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

Steva77 gravatar image Steva77 flag of Italy
1014 3

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

link publish delete flag offensive edit

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

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16

updated 2011-05-18 04:34:01 +0800

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;" />

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


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




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

Seen: 519 times

Last updated: May 18 '11

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