on ‎2019 Feb 07 1:25 PM
For new line "\n" and ""<br />" not working in backoffice MessageBox.show()
String str=" 1. P001 \n 2. P002 \n 3. P003"; MessageBox.show(str);
String str2=" 1. P001 <br /> 2. P002 <br /> 3. P003"; MessageBox.show(str2);
Request clarification before answering.
Hi ,
Please bear in mind that it is more zk Message box and you need to read a little bit about it on Potix documentation. Please try this one as starting point: MessageBox.
Cheers,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi - I am lacking time to test it myself but I would try the following:
String str=" 1. P001 \\n 2. P002 \\n 3. P003"; MessageBox.show(str);
String str2=" 1. P001 <br> 2. P002 <br> 3. P003"; MessageBox.show(str2);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi - I hope, the solution worked for you (especially, String str=" 1. P001 \\n 2. P002 \\n 3. P003" which I think should work; but as I mentioned earlier, I am too busy these days to test it myself). If yes, kindly update here so that it can be useful to others. If not, then also I request you to update here so that I will try to find another solution.
Did you check if http://forum.zkoss.org/question/32328/how-to-have-specify-newline-in-messagebox/ is of any help?
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.