Hi all,
I am a newbie and never use AJAX before. I try to make an update of a row of a
table with a Ajax form :
Form form = new Form("modifUser", new CompoundPropertyModel(user));
form.add(new AjaxFormSubmitBehavior("onsubmit") {
protected void onSubmit(AjaxRequestTarget target) {
// modify some data ....
target.addComponent(compToUpdate); // le component to refresh on the
original page
modal.close(target);
}
protected void onError(AjaxRequestTarget target) {
}
protected IAjaxCallDecorator getAjaxCallDecorator() {
return new AjaxCallDecorator() {
public CharSequence decorateScript(CharSequence script) {
return script+"return false;";
}
};
}
});
Everything woks fine except when the Ajax window close, the original page has
the focus at the end of page.
I think it should go the modify component (true ?). What can be possibly wrong ?
Thanks in advance for any help
Pierre
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]