You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/06/30 21:16:28 UTC
[jira] [Resolved] (WICKET-2797) AjaxFormSubmitBehavior should be
able to find the form when added to a form.
[ https://issues.apache.org/jira/browse/WICKET-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-2797.
-------------------------------------
Resolution: Duplicate
Fixed with WICKET-3840
> AjaxFormSubmitBehavior should be able to find the form when added to a form.
> ----------------------------------------------------------------------------
>
> Key: WICKET-2797
> URL: https://issues.apache.org/jira/browse/WICKET-2797
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 1.4.7
> Reporter: Maarten Billemont
>
> When adding an AjaxFormSubmitBehavior to a Form specifying null as the component, the object is unable to find the Form component because it only searches its component's children:
> // try to find form in the hierarchy of owning component
> Component component = getComponent();
> __form = component.findParent(Form.class);
> should be something like:
> // try to find form in the hierarchy of owning component
> Component component = getComponent();
> if (component.isInstance(Form.class))
> __form = (Form<?>) component;
> else
> __form = component.findParent(Form.class);
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira