-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
I changed my example to self - and it works!
onClick="alert(self.getAttribute("value"))" (in your case wsi instead value) [EDIT you have to quote the value & q u o t; - the forum doesn't show the quotes/]
However i do not work with self, because this is only a valid option for zscript (= interpreted java).
In my projects i always use the GenericForwardcomposer
zul-File: <button id="deleteButton" label="Delete" tooltip...="" custom-attributes...<="" p="">
Java source
// autowired event public void onClick$deleteButton(MouseEvent event) { Wsis deleteThis = (Wsis) event.getTarget().getAttribute("wsi"); // delete f }
BTW: i wonder about: onClick="alert(self.getAttribute("wsiRef"))" this is not xml-conform quotes insides quotes (i've got an error with this syntax)
/Robert