Re: [Wicket-user] external request response - best approach

2007-01-28 Thread Carfield Yim
Are you refer to something like verisign payflow pro API? For me I will just have a form and open an HTTP connection at onSubmit() method just like the example they've given. On 1/28/07, De Soca [EMAIL PROTECTED] wrote: Hello, I have a requirement to validate credit card via an external

Re: [Wicket-user] external request response - best approach

2007-01-28 Thread De Soca
I realized that was probably the easiest option. Thanks. Carfield Yim-2 wrote: Are you refer to something like verisign payflow pro API? For me I will just have a form and open an HTTP connection at onSubmit() method just like the example they've given. On 1/28/07, De Soca [EMAIL

[Wicket-user] external request response - best approach

2007-01-27 Thread De Soca
Hello, I have a requirement to validate credit card via an external service (external to our wicket application) then display the approriate response to the client. How best to approach this task the wicket way. 1. Should I do a redirect? If so how do I get the response 2. I saw mention here

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread Igor Vaynberg
you need to redirect to another website, and then that website redirects back to you? when you redirect to it you pass it the url you want to comeback to? -igor On 1/27/07, De Soca [EMAIL PROTECTED] wrote: Hello, I have a requirement to validate credit card via an external service

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread De Soca
No I don't, the call all happens in one request response cycle. Ideally I would like to perform the call and receive the response within my wicket submit method. Thanks. igor.vaynberg wrote: you need to redirect to another website, and then that website redirects back to you? when you

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread Igor Vaynberg
heh so what exactly is the problem? make the call in your onsubmit... ?? -igor On 1/27/07, De Soca [EMAIL PROTECTED] wrote: No I don't, the call all happens in one request response cycle. Ideally I would like to perform the call and receive the response within my wicket submit method.

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread De Soca
How would I get the response object in wicket? Do I do a redirect? Please elaborate. Thanks. igor.vaynberg wrote: heh so what exactly is the problem? make the call in your onsubmit... ?? -igor On 1/27/07, De Soca [EMAIL PROTECTED] wrote: No I don't, the call all happens in one

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread Igor Vaynberg
heh form/button.onsubmit() { boolean validated=validatethecard(); if (validated==true ) { processthedata(); setresposnepage(new successpage()); } else { error(invalid cc num); } } -igor On 1/27/07, De Soca [EMAIL PROTECTED] wrote: How would I get the response object in wicket?

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread De Soca
Hi Igor, this is the direction I would like to take: snip - Form form = new Form(this, inputForm); new ButtonString(form, saveButton) { @Override public void onSubmit() { logger.debug( need to

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread De Soca
In your validatethecard() do have to work with the raw servlet api or are there wicket objects i can i use. I guess that is the crux of my question. igor.vaynberg wrote: heh form/button.onsubmit() { boolean validated=validatethecard(); if (validated==true ) { processthedata();

Re: [Wicket-user] external request response - best approach

2007-01-27 Thread Igor Vaynberg
i really dont understand what you are trying to do but if you want the raw http request you do ((webrequest)getrequest()).gethttpservletrequest() -igor On 1/27/07, De Soca [EMAIL PROTECTED] wrote: In your validatethecard() do have to work with the raw servlet api or are there wicket