[ 
https://issues.apache.org/jira/browse/WICKET-2633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Juergen Donnerstag resolved WICKET-2633.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-M1
                   1.4.6
         Assignee: Juergen Donnerstag

> AjaxEditableLabel fails to focus editor upon validation errors
> --------------------------------------------------------------
>
>                 Key: WICKET-2633
>                 URL: https://issues.apache.org/jira/browse/WICKET-2633
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.4.5
>            Reporter: Petr Novotník
>            Assignee: Juergen Donnerstag
>             Fix For: 1.4.6, 1.5-M1
>
>
> hi all,
> the AjaxEditableLabel's #onError implementation fails to properly focus the 
> editor. The problem is the javascript appended to the ajax request target; 
> replacing the lines 460 - 462 in AjaxEditableLabel with the the below code 
> fixes the problem.
> {code}
> target.appendJavascript("{var el=wicketGet('" + editor.getMarkupId() + "'); 
> el.select(); el.focus();}");
> {code}
> a workaround is to subclass AjaxEditableLabel and overide the #onError method.
> many thanks in advance,
> pete.

-- 
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