Re: Form Submission problem
custom filter is extended by the other framework which filter we cannot see as it is Out of the Box. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Submission-problem-tp4650575p4650614.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Form Submission problem
Hi , I have inserted my custom filter in which i have specified url-pattern as /*, but now the form submission is not going just getting a blank page, Please advise how to handle this. I dont see any Exceptions on my logs too. Thanks, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Submission-problem-tp4650575.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Form Submission problem
Hi, can you post the code of your custom filter? Hi , I have inserted my custom filter in which i have specified url-pattern as /*, but now the form submission is not going just getting a blank page, Please advise how to handle this. I dont see any Exceptions on my logs too. Thanks, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Submission-problem-tp4650575.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket tester form submission problem
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 cbchh...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket tester form submission problem
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 cbchh...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IndicatingAjaxSubmitButton and download after form submission problem
you cannot stream back from ajax request directly, instead try doing something like window.location=somedownloadurl for ajax requests; -igor On 8/21/07, Martin Bednář [EMAIL PROTECTED] wrote: Hi, I have problem when I use IndicatingAjaxSubmitButton for dowload after form submission. I use this code, normal Button working correctly. it's bug in IndicatingAjaxSubmitButton or I'm doing something wrong ? ... //This dosn't work form.add(new IndicatingAjaxSubmitButton(submit, form) { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { processSubmit(); } }); //This working form.add(new Button(submit) { @Override protected void onSubmit() { processSubmit(); } }); private void processSubmit() { final String zipArchiveFilename = /tmp/sample.zip; RequestCycle requestCycle = this.getRequestCycle(); final ResourceStreamRequestTarget exportTarget = new ResourceStreamRequestTarget( new FileResourceStream(new wicket.util.file.File( zipArchiveFilename)), application/zip) { @Override protected void configure(Response arg0, IResourceStream arg1) { super.configure(arg0, arg1); WebResponse response = (WebResponse) arg0; setFileName(sample.zip); } }; requestCycle.setRequestTarget(exportTarget); }