add(new ajaxbutton("button") {
getajaxcalldecorator() {
return new iajaxcalldecorator() {
decoratescript(script) { "return this.enabled=false;"+script; }
decorateonfailurescript(script) { return script+";this.enabled=true;";}
decorateonsuccessscript(script) { return script+";this.enabled=true;";}
}
}
}
doesnt look like a lot of javascript to me. further you can factor it
out into a separate class and reuse it all over the place.
-igor
On Mon, Aug 31, 2009 at 5:40 AM, Tom Wollert<[email protected]> wrote:
> The only idea I can come up with is to keep state of my model on client
> side, but that would require alot of javascript :/
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]