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:13:29 UTC
[jira] Created: (WICKET-2633) AjaxEditableLabel fails to focus
editor upon validation errors
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.
[jira] Resolved: (WICKET-2633) AjaxEditableLabel fails to focus
editor upon validation errors
Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (WICKET-2633) AjaxEditableLabel fails to focus
editor upon validation errors
Posted by "Petr Novotník (JIRA)" <ji...@apache.org>.
[ 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.