Re: Line breaks and label

2010-07-23 Thread Witold Czaplewski
hmm...sorry, i don't understand what you mean. Here a small example how to implement this. HTML-Template: span wicket:id=myspan class=nowrap/span CSS: .nowrap {white-space:nowrap;} Java: add(new Label(myspan, new ModelString(Some long Text...)); Hope it helps. :) Witold Am Thu, 22 Jul 2010

Re: Line breaks and label

2010-07-22 Thread Martijn Dashorst
This is not a wicket problem, but rather a browser rendering issue. Use nbsp; instead of whitespace. Martijn On Thu, Jul 22, 2010 at 5:47 AM, Nii Amon Dsane jaz...@gmail.com wrote: Hello, I have a label that's displayed on a page. The label displays but with a linebreak and this breaks the

Re: Line breaks and label

2010-07-22 Thread Witold Czaplewski
Or use in CSS: white-space:nowrap; Witold Am Thu, 22 Jul 2010 11:56:57 +0200 schrieb Martijn Dashorst martijn.dasho...@gmail.com: This is not a wicket problem, but rather a browser rendering issue. Use nbsp; instead of whitespace. Martijn On Thu, Jul 22, 2010 at 5:47 AM, Nii Amon Dsane

Re: Line breaks and label

2010-07-22 Thread Nii Amon Dsane
: http://apache-wicket.1842946.n4.nabble.com/Line-breaks-and-label-tp2298095p2298886.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Line breaks and label

2010-07-22 Thread Nii Amon Dsane
not have the wicket:id set on them. Quite strange! nii amon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Line-breaks-and-label-tp2298095p2298899.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Line breaks and label

2010-07-22 Thread Nii Amon Dsane
Hi Witold, I noticed something. When I was using tags to embed strings in to the markup, the CSS wasn't applied but when I tried it with a div the styles were applied. Is this expected behaviour? nii amon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Line-breaks

Line breaks and label

2010-07-21 Thread Nii Amon Dsane
Hello, I have a label that's displayed on a page. The label displays but with a linebreak and this breaks the sentence that I am writing. How do I get rid of the line break after the label? My code is below (the problematic label is svcName): List list = getServices(); ListView listview = new