OR, even simpler via a wicket:message: <button wicket:id="fooButton" wicket:message="onclick:fooMethod">
What I don't like about this is that the JS call would actually wind up in my properties file. -----Original Message----- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 3:29 PM To: [email protected] Subject: Adding JS onclick behavior to button? I guess I could just do something like this: button.add(new AttributeModifier("onClick", "return jsMethod();")); but I remember there's a standard way of doing that... Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
