instead of referencing the id 'create' hardcoded, rather use getMarkupId().
Gerolf On Tue, Mar 11, 2008 at 9:11 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Thanks! I got it to work now. Is it really a good idé to access html like > this in javacode? > > @Override > protected IAjaxCallDecorator getAjaxCallDecorator() > { > return new IAjaxCallDecorator() > { > private static final long > serialVersionUID = 1L; > public CharSequence > decorateScript(CharSequence script) > { > return " > document.getElementById('create').disabled=true;"+script; > } > public CharSequence > decorateOnFailureScript(CharSequence script) > { > return script+" > document.getElementById('create').disabled=false;"; > } > public CharSequence > decorateOnSuccessScript(CharSequence script) > { > return script+" > document.getElementById('create').disabled=false;"; > } > }; > } > -- > View this message in context: > http://www.nabble.com/Disable-ajaxbutton-until-process-is-done-tp15976490p15988543.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >