Revision history [back]

click to hide/show revision 1
initial version

answered 2010-03-03 11:08:01 +0800

robertpic71 gravatar image robertpic71

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)


Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More