You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/11/18 09:24:33 UTC
[jira] [Commented] (WICKET-5753) It is impossible to determine the
form submitting component's inputName when AjaxFormSubmitBehavior is used
[ https://issues.apache.org/jira/browse/WICKET-5753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14215886#comment-14215886 ]
ASF subversion and git services commented on WICKET-5753:
---------------------------------------------------------
Commit f0a1a068323575efc5198071224ec667e2dd5307 in wicket's branch refs/heads/wicket-6.x from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=f0a1a06 ]
WICKET-5753 It is impossible to determine the form submitting component's inputName when AjaxFormSubmitBehavior is used
(cherry picked from commit 2f04133d67883c263482d83fbcccc83013477b7f)
> It is impossible to determine the form submitting component's inputName when AjaxFormSubmitBehavior is used
> -----------------------------------------------------------------------------------------------------------
>
> Key: WICKET-5753
> URL: https://issues.apache.org/jira/browse/WICKET-5753
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 6.17.0
> Reporter: Maxim Solodovnik
> Assignee: Martin Grigorov
>
> It is impossible to determine inputName in Form.delegateSubmit method (was working in version 1.4)
> as per Martin's comment from this thread: http://markmail.org/message/eiji4elt4mitf2m5
> I see a way to simplify this code so it will be possible to do what you
> need:
> 1) AjaxFormSubmitBehavior should implement IFormSubmitter
> 2) onEvent() should do: getForm().getRootForm().onFormSubmitted(this)
> then you can cast to AbstractAjaxBehavior and call getComponent() and then
> cast to IFormSubmittingComponent to get the input name
> I'm not sure whether clirr-maven-plugin will allow this change in 6.x though
> Please file a ticket and I'll take a look in the next days.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)