[ 
https://issues.apache.org/jira/browse/WICKET-1855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666839#action_12666839
 ] 

Mark Piper commented on WICKET-1855:
------------------------------------

Confirmed as still a bug in 1.4-RC1


> Using an AjaxSubmitLink outside of a Form does not set the form property
> ------------------------------------------------------------------------
>
>                 Key: WICKET-1855
>                 URL: https://issues.apache.org/jira/browse/WICKET-1855
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.4
>            Reporter: Pieter van Prooijen
>            Priority: Minor
>
> When constructing an AjaxSubmitLink outside of a form using the constructor:
> public AjaxSubmitLink(String id, final Form form)
> The form argument is not set in the link. This prevents the form from seeing 
> the link as its submitting component, which in turn means that using thing 
> like enableDefaultFormProcessing() on the link don't work.
> Changing the constructor of AjaxSubmitLink to:
> public AjaxSubmitLink(String id, final Form form)
> {
>   super(id, form)  /* was: super(id) */
>   ...
> }
> will probably fix the problem.
> A temporary workaround is to implement a getForm() method in the subclass of 
> the submit link which answers the form of the link

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to