multi-line in i3-label.properties file ...
7 Feb 2012 05:56:26 GMT
7 Feb 2012 08:55:05 GMT
7 Feb 2012 08:55:05 GMT
btnDelete.toolTipText={
do you really
want to delete ?
}
best
Stephan
PS: I edit the property files with the eclipse text-editor because the property editor cannot handle multilines correct and delete ending sign '}' . So it will become to an error by starting the spplication and reading the property file.
7 Feb 2012 08:57:26 GMT
7 Feb 2012 08:57:26 GMT
Hi mansoo1500,
Try this:
In properties:
test.key=first line {0} second line {0} third line
In zul:
<zk>
<zscript><![CDATA[
import org.zkoss.util.resource.*;
String s = Labels.getLabel("test.key", new Object[] { "\n\r" });
]]></zscript>
<label multiline="true" value="${s}" />
</zk>
Regards,
ben
16 Mar 2012 02:09:44 GMT
16 Mar 2012 02:09:44 GMT
Thx~guys it really helped.
btnDelete.toolTipText={
do you really
want to delete ?
}
i used this way~
ZK - Open Source Ajax Java Framework
want to use multi-line text in i3-label.properties file like other properties files ...
[[[
TEST.KEY1 = VALUE1 \n \
VALUE1_2 \n \
VALUE1_3
TEST.KEY2 = VALUE2
]]]
i can get multi-line text using ResourceBundle.getBundle() ...
but i can't get text with Labels.getLabel() from i3-label.properties ...
if i use Labels.getLabel("TEST.KEY"), this produce error ...
can't anyone help me with this?