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


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}

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