Thanks to Ken Tong who finds the solution :
It's a bug in IE. It works fine in Firefox. There is actually a bug report
on this: https://issues.apache.org/jira/browse/WICKET-1265
 


Pierre G wrote:
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/End-of-page-after-Ajax-Form-tp14685891p14738117.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]

Reply via email to