Re: Advice on payment options with wicket
What is the problem? I.e., why do you feel it can not be a simple page? ** Martin 2009/1/14 Mathias P.W Nilsson math...@snyltarna.se: Hi, I have developed an application with wicket that has been around for about a year. A user can have serveral options for payment - Visa, MasterCard, Post parcel, invoice( several diffrent ) and some banks. My problem is that if the user choose visa, mastercard then a form should be filled with data and sent to a servlet not managed by me. For invoice and banking different data also sent to a servlet and post parcel to a wicket page. The user should onlysee a ListView of choices but the code becomes really spagettyish. Especially since some of the payments requires price updates and modal window checking for social security number. Some advice on how to implement this with wicket would be really greatful without a 4000 rows wicket page. -- View this message in context: http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21452753.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Advice on payment options with wicket
The main problem is the external form. I need to send the form to an external server. Since I need wicket to check the form first I need a wicket form and then a plain html form. The form is submitted when all the data is checked. Since there is 10 different forms the webpage get's cluttered. Is there a way to make external form from wicket? -- View this message in context: http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21459848.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: Advice on payment options with wicket
Why don't you send the query parameters from wicket to the payment server using QueryStringUrlCodingStrategy ? ** Martin 2009/1/14 Mathias P.W Nilsson math...@snyltarna.se: The main problem is the external form. I need to send the form to an external server. Since I need wicket to check the form first I need a wicket form and then a plain html form. The form is submitted when all the data is checked. Since there is 10 different forms the webpage get's cluttered. Is there a way to make external form from wicket? -- View this message in context: http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21459848.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Advice on payment options with wicket
Have you considered HttpClient? http://hc.apache.org/httpclient-3.x/ Scott On Wed, Jan 14, 2009 at 8:44 AM, Mathias P.W Nilsson math...@snyltarna.se wrote: The main problem is the external form. I need to send the form to an external server. Since I need wicket to check the form first I need a wicket form and then a plain html form. The form is submitted when all the data is checked. Since there is 10 different forms the webpage get's cluttered. Is there a way to make external form from wicket? -- View this message in context: http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21459848.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Advice on payment options with wicket
Submit the form as normal in Wicket, validate, etc, then craft a request to the external form and send your data that way. cheers, Steve On 14 Jan 2009, at 16:44, Mathias P.W Nilsson wrote: The main problem is the external form. I need to send the form to an external server. Since I need wicket to check the form first I need a wicket form and then a plain html form. The form is submitted when all the data is checked. Since there is 10 different forms the webpage get's cluttered. Is there a way to make external form from wicket? -- View this message in context: http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21459848.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 smime.p7s Description: S/MIME cryptographic signature
Re: Advice on payment options with wicket
This is what I'm doing ( via an javascript call from wicket ajax after the form is validated). Problem is that the model must be emptied when the form is submitted ( cart, order ) and then the page get's rerendered. It's all fussy. 10 forms in the same page. Must be a smarter solution. -- View this message in context: http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21461128.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: Advice on payment options with wicket
Honestly, I simply cannot grasp the problem. Our site works like this: 1. User fills form. 2. User submits form to Wicket site. 3. Wicket site analyzes the submitted form and constructs a PageParameters map. 4. Wicket site redirects the user to a payment processing server using the PageParameters. If 10 forms in the same page. are in stage 1-2 it does not matter, you can make 3-4 as simple as you want. Maybe you could describe your process in more detail? ** Martin 2009/1/14 Mathias P.W Nilsson math...@snyltarna.se: This is what I'm doing ( via an javascript call from wicket ajax after the form is validated). Problem is that the model must be emptied when the form is submitted ( cart, order ) and then the page get's rerendered. It's all fussy. 10 forms in the same page. Must be a smarter solution. -- View this message in context: http://www.nabble.com/Advice-on-payment-options-with-wicket-tp21452753p21461128.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org