You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Anatoly Kupriyanov (JIRA)" <ji...@apache.org> on 2010/10/18 11:05:25 UTC

[jira] Commented: (WICKET-1404) Investigate default focus support (on Page or RequestCycle)

    [ https://issues.apache.org/jira/browse/WICKET-1404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922023#action_12922023 ] 

Anatoly Kupriyanov commented on WICKET-1404:
--------------------------------------------

It's bad idea to set focus from the onload event. This event could occur after a control is visible and a user starts edit the control - focus suddenly jumps to another one.
I hate this - I open page, it still loading but login/password form already rendered and while I'm typing a password, page finishes loading and focus suddenly jumps to the login box, it could reveal my password.
Usually it's better to put getElementById('" + component.getMarkupId() + "').focus() right after form component.

> Investigate default focus support (on Page or RequestCycle)
> -----------------------------------------------------------
>
>                 Key: WICKET-1404
>                 URL: https://issues.apache.org/jira/browse/WICKET-1404
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3.1
>            Reporter: James Carman
>            Priority: Minor
>             Fix For: 1.5-M3
>
>         Attachments: WICKET-1404.patch
>
>
> We need something which gives a component the focus when the page loads.

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