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