open a jira issue, looks like a bug to me

-igor

On Wed, Oct 1, 2008 at 10:11 AM, Pieter van Prooijen
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm using an AjaxSubmitLink outside of a Form and want to disable the
> default form processing (validation etc.) when submitting via this link.
> But that doesn't work, the validation is always executed:
>
> add(new AjaxSubmitLink("submit-link", form)
> {
>  {
>    setDefaultFormProcessing(false); // Don't validate the input.
>  }
>  // onSubmit() goes here ...
> }
>
> After some digging in the 1.3.4 source,
> it looks like  the defaultFormProcessing property of this link is never
> read by the form, because it can't find the link as the submitting
> component. This happens because the form property of the AjaxSubmitLink
> is never set in the constructor. The constructor of AjaxSubmitLink
> reads:
>
> public AjaxSubmitLink(String id, final Form form)
> {
>  super(id);
>  ...
> }
>
> instead of:
>
> public AjaxSubmitLink(String id, final Form form)
> {
>  super(id, form)
>  ...
> }
>
> Should I report this as a bug or am I forgetting something in my code ?
>
> If necessary I can supply a simple page which shows the problem with a
> textfield and a submit link.
>
> Thank you for your time,
>
> Pieter van Prooijen
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to