You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chiradeep Chhaya <cb...@gmail.com> on 2009/04/21 18:03:03 UTC

Wicket tester form submission problem

I have a form that contains an indicating ajax button which when
clicked performs some calculations and calls setResponsePage. In the
test I have tried form.submit on the button and also executing
onSubmit ajax event but nothing works. Any suggestions?

Thanks

-- 
Sent from my mobile device

-Chiradeep

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket tester form submission problem

Posted by cbchhaya <cb...@gmail.com>.
Martijn,

That's exactly what I am doing (I think form.submit earlier was confusing -
apologies).

The button has setDefaultFormProcessing to true (but is used to
setResponsePage) - although this works fine functionally, could that be an
issue with the test?

I will debug the tree to see if validation components contain any errors -
there were none in the test logs though.

Thanks!



Martijn Dashorst wrote:
> 
> FormTester ft = tester.newFormTester("form");
> ft.submit();
> 
> Did you also check for any validation errors?
> 
> Martijn
> 
> On Tue, Apr 21, 2009 at 6:03 PM, Chiradeep Chhaya <cb...@gmail.com>
> wrote:
>> I have a form that contains an indicating ajax button which when
>> clicked performs some calculations and calls setResponsePage. In the
>> test I have tried form.submit on the button and also executing
>> onSubmit ajax event but nothing works. Any suggestions?
>>
>> Thanks
>>
>> --
>> Sent from my mobile device
>>
>> -Chiradeep
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.5 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wicket-tester-form-submission-problem-tp23159433p23166322.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: Wicket tester form submission problem

Posted by Martijn Dashorst <ma...@gmail.com>.
FormTester ft = tester.newFormTester("form");
ft.submit();

Did you also check for any validation errors?

Martijn

On Tue, Apr 21, 2009 at 6:03 PM, Chiradeep Chhaya <cb...@gmail.com> wrote:
> I have a form that contains an indicating ajax button which when
> clicked performs some calculations and calls setResponsePage. In the
> test I have tried form.submit on the button and also executing
> onSubmit ajax event but nothing works. Any suggestions?
>
> Thanks
>
> --
> Sent from my mobile device
>
> -Chiradeep
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org