You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ritesh Trivedi <ri...@gmail.com> on 2008/08/27 23:51:44 UTC

Nested forms and IndicatingAjaxSubmitButton - multiple issues

Hi,

I have IndicatingAjaxButton in a form within a panel, panel itself is inside
another wrapper form on the enclosing page. Seems like I get really weird
behavior based on how many forms I have on the page - even though the
ajaxsubmit button's form hierarchy doesnt really change.

Condition 1:
When there are 2 forms - indicatingajaxbutton -> form -> panel -> form ->
page

In both IE and FF onSubmit() of the indicatingajaxbutton gets called
correctly - but entire page gets reloaded instead of just updating the
targets added to the ajaxtarget. Even though the containing page in the
above hierarchy is bookmarkable page In IE the url changes to
wicket:interface::10:2 etc.

Condition 2:
When there are atleast 3 forms - indicatingajaxbutton -> form -> panel ->
form1, form2 (at the same level) -> page

In FF most of the time it works correctly - although every now and then I do
see the loadabledetachable model load method not even called for the
updating components

In IE 7 - Dont get a call to onSubmit() for indicatingajaxbutton at all but
the page reloads and again even though the page is bookmarkable -
wicket:interface url shows with the bumped version number

Can someone think of any work arounds while this gets looked at?


-- 
View this message in context: http://www.nabble.com/Nested-forms-and-IndicatingAjaxSubmitButton---multiple-issues-tp19190442p19190442.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: Nested forms and IndicatingAjaxSubmitButton - multiple issues

Posted by Ritesh Trivedi <ri...@gmail.com>.
After spending a day or so on this issue, I finally figured out and found a
bug in wicket-ajax.js.

I am curious to know why I didnt get any responses from the Wicket
developer(s), at least who had originally coded this portion, as I had asked
for help couple of times. 

This will help me (and may be others) in future on if/when/how to get
answers to the issues/posts here.




Ritesh Trivedi wrote:
> 
> Hi,
> 
> I have IndicatingAjaxButton in a form within a panel, panel itself is
> inside another wrapper form on the enclosing page. Seems like I get really
> weird behavior based on how many forms I have on the page - even though
> the ajaxsubmit button's form hierarchy doesnt really change.
> 
> Condition 1:
> When there are 2 forms - indicatingajaxbutton -> form -> panel -> form ->
> page
> 
> In both IE and FF onSubmit() of the indicatingajaxbutton gets called
> correctly - but entire page gets reloaded instead of just updating the
> targets added to the ajaxtarget. Even though the containing page in the
> above hierarchy is bookmarkable page In IE the url changes to
> wicket:interface::10:2 etc.
> 
> Condition 2:
> When there are atleast 3 forms - indicatingajaxbutton -> form -> panel ->
> form1, form2 (at the same level) -> page
> 
> In FF most of the time it works correctly - although every now and then I
> do see the loadabledetachable model load method not even called for the
> updating components
> 
> In IE 7 - Dont get a call to onSubmit() for indicatingajaxbutton at all
> but the page reloads and again even though the page is bookmarkable -
> wicket:interface url shows with the bumped version number
> 
> Can someone think of any work arounds while this gets looked at?
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Nested-forms-and-IndicatingAjaxSubmitButton---multiple-issues-tp19190442p19226103.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: Nested forms and IndicatingAjaxSubmitButton - multiple issues

Posted by Ritesh Trivedi <ri...@gmail.com>.
Anyone?


Ritesh Trivedi wrote:
> 
> Hi,
> 
> I have IndicatingAjaxButton in a form within a panel, panel itself is
> inside another wrapper form on the enclosing page. Seems like I get really
> weird behavior based on how many forms I have on the page - even though
> the ajaxsubmit button's form hierarchy doesnt really change.
> 
> Condition 1:
> When there are 2 forms - indicatingajaxbutton -> form -> panel -> form ->
> page
> 
> In both IE and FF onSubmit() of the indicatingajaxbutton gets called
> correctly - but entire page gets reloaded instead of just updating the
> targets added to the ajaxtarget. Even though the containing page in the
> above hierarchy is bookmarkable page In IE the url changes to
> wicket:interface::10:2 etc.
> 
> Condition 2:
> When there are atleast 3 forms - indicatingajaxbutton -> form -> panel ->
> form1, form2 (at the same level) -> page
> 
> In FF most of the time it works correctly - although every now and then I
> do see the loadabledetachable model load method not even called for the
> updating components
> 
> In IE 7 - Dont get a call to onSubmit() for indicatingajaxbutton at all
> but the page reloads and again even though the page is bookmarkable -
> wicket:interface url shows with the bumped version number
> 
> Can someone think of any work arounds while this gets looked at?
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Nested-forms-and-IndicatingAjaxSubmitButton---multiple-issues-tp19190442p19209963.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