You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Petr Novotník (JIRA)" <ji...@apache.org> on 2009/12/23 10:17:29 UTC

[jira] Updated: (WICKET-2633) AjaxEditableLabel fails to focus editor upon validation errors

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

Petr Novotník updated WICKET-2633:
----------------------------------

    Description: 
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.

  was:
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.


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