[
https://issues.apache.org/jira/browse/WICKET-2225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Johan Compagner closed WICKET-2225.
-----------------------------------
Resolution: Won't Fix
you already can do that
AjaxRequestTarget: public final void focusComponent(Component component)
call it with null then the focus shouldnt be set.
> 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.