-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi all
I have a problem with the carriage return in tooltip.
My code :
return new ListitemRenderer() { @Override public void render(Listitem item, Object data) throws Exception { item.setValue(data); Listcell cell = new Listcell(); item.appendChild(cell); Hbox box = new Hbox(); cell.appendChild(box); [...] toolTip += fieldName + " : " + result + "\n" + "something"; Label label = new Label(extension); label.setTooltiptext(toolTip); box.appendChild(label); } };
And the "\n" is not interpreted...
Thanks for your help,
Regards,
SHERKHAN
That's not the same!
I remember that at earlier times we have problems with the missing 'pageEncoding' key. Please try this:
<?page id="indexPage" title="wikitties" cacheable="false" language="xul/html" zscriptLanguage="Java"?>
<?meta content="text/html; charset=UTF-8" pageEncoding="UTF-8"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit"?>
<window id="win" title="wik . . .
best
Stephan
Hey Stephan you have good memory!
But I have a bad news : it doesn't work...
It must be a stupid mistake! It may can come from my web.xml?
best regards,
SHERKHAN
Hi, i got the same problem.
When i use system.out.println(myString) i got the "\n" but in ZK dont.
someone?
i dont know why but status = status.concat(lista.get(i).getStatus()+" "+"\n"); work o.O
Hello, I knoew this is an old problem, but the solution I found was to escape the xml code by using
Asked: 2010-06-28 05:06:34 +0800
Seen: 1,130 times
Last updated: Dec 13 '18