-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I´m trying to do a basic example of annotation in javacode, but it´s not working. Can anyone tell me what i did wrong?
in my controller, i have:
Label l = (Label) getWindowAtual().getFellow("teste"); Map aa = new HashMap(); aa.put("value", "teste"); l.addAnnotation("bind", aa);
and in zul i have
<row style="border: 0px" height="35px"> <label id="teste" ></label> <row>
if anyone can help
thanks
an example :
HashMap<String, String[]> annotAttrs = new HashMap<String, String[]>(); annotAttrs.put("value", new String[]{"a.b.c"}); myLbl.addAnnotation("value", "load", annotAttrs);
Your sample code lake of "value" as the first argument while calling addAnnotation();
Asked: 2012-10-15 17:32:59 +0800
Seen: 62 times
Last updated: Oct 23 '12