0

Line break in Messagebox

asked 2014-10-13 10:06:30 +0800

Neus gravatar image Neus
1415 14

Hi, I'm trying to set a line break in Messagebox. I have a text with "\n" but in the messagebox text appears the characters "\n" instead of a line break. I tried to replace it for "
" but as happened with "\n", the text "
" appears instead of doing a line break. I try it with ZK Fiddle, and it works great! I set a text with "\n" and the messagebox appears with a line break. So...what's different between the ZK I'm using in my prject and the ZK version in Fiddle?? How can I solve it???

Thank you!

delete flag offensive retag edit

Comments

zkfiddle uses ZK EE. Do you use ZK CE?

hawk ( 2014-10-14 02:28:30 +0800 )edit

Yes I'm using ZK CE? Why with ZK CE I can't add a line break in messagebox?

Neus ( 2014-10-14 08:00:12 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-19 18:10:10 +0800

Darksu gravatar image Darksu
1991 1 4

Hello Neus,

There are very interesting solutions on how to add a line break at the following url's:

http://forum.zkoss.org/question/17558/line-break-in-messagebox/

http://www.oxitec.net/blog/?p=113

http://emrpms.blogspot.gr/2012/05/message-box-customization.html

Best Regards,

Darksu

link publish delete flag offensive edit

Comments

Finally I solved it. It seems there was no problem, but I was obtaining the String with the line break from a Server Process. I don't know why but although I saw the text with \n it didn't work until I replace \ \n (without the space) for \n Thank you anyway

Neus ( 2014-10-22 16:14:38 +0800 )edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-10-13 10:06:30 +0800

Seen: 16 times

Last updated: Oct 19 '14

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