You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Stefan Fußenegger <st...@gmx.at> on 2008/10/23 15:47:15 UTC
AjaxFallbackButton: inconsistend submit order
Hi folks,
I just stumbled upon a problem with a Form containing a nested Form and two
AjaxFallbackButtons (submit and preview). I need to implement different
onSubmit() behavior of the nested Form depending on the clicked button.
The order of onSubmit() calls is:
without JS:
- AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
- OuterForm.onSubmit() // not used
- Inner Form.onSubmit()
with JS:
- Inner Form.onSubmit()
- OuterForm.onSubmit() // not used
- AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
With JS, it is therefore not possible to determine which button was clicked
from inside a form's onSubmit() method.
Is this a (known) bug?
-----
-------
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
--
View this message in context: http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20131329.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxFallbackButton: inconsistend submit order
Posted by Igor Vaynberg <ig...@gmail.com>.
shows it was released here...maybe martijn sneaked that change in.
-igor
On Fri, Oct 24, 2008 at 12:52 AM, Stefan Fußenegger
<st...@gmx.at> wrote:
>
> https://issues.apache.org/jira/browse/WICKET-1894
>
> btw: 1.3.5 is still in the "unreleased versions" section
>
> regards
>
>
>
> igor.vaynberg wrote:
>>
>> this sounds like a bug, please file a jira report
>>
>> -igor
>>
>> On Thu, Oct 23, 2008 at 6:47 AM, Stefan Fußenegger
>> <st...@gmx.at> wrote:
>>>
>>> Hi folks,
>>>
>>> I just stumbled upon a problem with a Form containing a nested Form and
>>> two
>>> AjaxFallbackButtons (submit and preview). I need to implement different
>>> onSubmit() behavior of the nested Form depending on the clicked button.
>>>
>>> The order of onSubmit() calls is:
>>>
>>> without JS:
>>> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
>>> - OuterForm.onSubmit() // not used
>>> - Inner Form.onSubmit()
>>>
>>> with JS:
>>> - Inner Form.onSubmit()
>>> - OuterForm.onSubmit() // not used
>>> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
>>>
>>> With JS, it is therefore not possible to determine which button was
>>> clicked
>>> from inside a form's onSubmit() method.
>>>
>>> Is this a (known) bug?
>>>
>>> -----
>>> -------
>>> Stefan Fußenegger
>>> http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
>>> --
>>> View this message in context:
>>> http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20131329.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
>
> -----
> -------
> Stefan Fußenegger
> http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
> --
> View this message in context: http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20145832.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxFallbackButton: inconsistend submit order
Posted by Stefan Fußenegger <st...@gmx.at>.
https://issues.apache.org/jira/browse/WICKET-1894
btw: 1.3.5 is still in the "unreleased versions" section
regards
igor.vaynberg wrote:
>
> this sounds like a bug, please file a jira report
>
> -igor
>
> On Thu, Oct 23, 2008 at 6:47 AM, Stefan Fußenegger
> <st...@gmx.at> wrote:
>>
>> Hi folks,
>>
>> I just stumbled upon a problem with a Form containing a nested Form and
>> two
>> AjaxFallbackButtons (submit and preview). I need to implement different
>> onSubmit() behavior of the nested Form depending on the clicked button.
>>
>> The order of onSubmit() calls is:
>>
>> without JS:
>> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
>> - OuterForm.onSubmit() // not used
>> - Inner Form.onSubmit()
>>
>> with JS:
>> - Inner Form.onSubmit()
>> - OuterForm.onSubmit() // not used
>> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
>>
>> With JS, it is therefore not possible to determine which button was
>> clicked
>> from inside a form's onSubmit() method.
>>
>> Is this a (known) bug?
>>
>> -----
>> -------
>> Stefan Fußenegger
>> http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
>> --
>> View this message in context:
>> http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20131329.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
-----
-------
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
--
View this message in context: http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20145832.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxFallbackButton: inconsistend submit order
Posted by Igor Vaynberg <ig...@gmail.com>.
this sounds like a bug, please file a jira report
-igor
On Thu, Oct 23, 2008 at 6:47 AM, Stefan Fußenegger
<st...@gmx.at> wrote:
>
> Hi folks,
>
> I just stumbled upon a problem with a Form containing a nested Form and two
> AjaxFallbackButtons (submit and preview). I need to implement different
> onSubmit() behavior of the nested Form depending on the clicked button.
>
> The order of onSubmit() calls is:
>
> without JS:
> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
> - OuterForm.onSubmit() // not used
> - Inner Form.onSubmit()
>
> with JS:
> - Inner Form.onSubmit()
> - OuterForm.onSubmit() // not used
> - AjaxFallbackButton.onSubmit(AjaxRequestTarget,Form)
>
> With JS, it is therefore not possible to determine which button was clicked
> from inside a form's onSubmit() method.
>
> Is this a (known) bug?
>
> -----
> -------
> Stefan Fußenegger
> http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
> --
> View this message in context: http://www.nabble.com/AjaxFallbackButton%3A-inconsistend-submit-order-tp20131329p20131329.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org