Do not restore element focus after AJAX call
--------------------------------------------

                 Key: WICKET-2225
                 URL: https://issues.apache.org/jira/browse/WICKET-2225
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.3.4
            Reporter: Peter Parson


After doing an AJAX call, the focus is restored to the last focused element on 
the page.

It would be great to have the possibility to disable this behavior.

The problem is that setting the focus to an element causes the browser to 
scroll this element back into view in both IE and FF, which is quite annoying, 
especially if the user did not invoke the ajax call himself.

Scenario:
- AjaxLink on top of a very long page
- click an AjaxLink -> gets focus
- scroll down the page
- invoke AJAX call without changing focus (e.g. through AjaxTimerBehavior) -> 
browser will scroll to top until AjaxLink is in view

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to