Re: [Wicket-user] POST form submissions being converted to GETs

2007-05-11 Thread Erik van Oosten

Wicket will always do a redirect after the POST. So the information you are
seeing is from the second request, which is a GET.

You can install LiveHTTPHeaders in FireFox. There is something similar for
IE.

Regards,
Erik.



Lowell Kirsh wrote:
 
 I have a wicket form which is supposed to be POSTing its data. Looking
 at the generated page, it is indeed method=post. But the page that
 it redirects to thinks that it is a GET. I found this information by
 doing:
 
 WebRequest request = (WebRequest) RequestCycle.get().getRequest();
 String method = request.getHttpServletRequest().getMethod();
 
 In this case, method is GET. I don't get why this is not POST. So
 right now I'm not sure if it's mistakenly thinking it's a GET when it
 is indeed a POST, or if it's really a GET. Does anyone have any
 recommendation on how I can figure this out (eg. some tool not
 associated with wicket)?
 
 Thanks,
 Lowell
 


-- 
Erik van Oosten
http://2007.rubyenrails.nl/
http://www.day-to-day-stuff.blogspot.com/ 

-- 
View this message in context: 
http://www.nabble.com/POST-form-submissions-being-converted-to-GETs-tf3725515.html#a10426535
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] POST form submissions being converted to GETs

2007-05-11 Thread Lowell Kirsh
Thanks for the advice. That is unfortunate in my case. But that's a
bit off topic from this, so I will post another message.

On 5/10/07, Erik van Oosten [EMAIL PROTECTED] wrote:

 Wicket will always do a redirect after the POST. So the information you are
 seeing is from the second request, which is a GET.

 You can install LiveHTTPHeaders in FireFox. There is something similar for
 IE.

 Regards,
 Erik.



 Lowell Kirsh wrote:
 
  I have a wicket form which is supposed to be POSTing its data. Looking
  at the generated page, it is indeed method=post. But the page that
  it redirects to thinks that it is a GET. I found this information by
  doing:
 
  WebRequest request = (WebRequest) RequestCycle.get().getRequest();
  String method = request.getHttpServletRequest().getMethod();
 
  In this case, method is GET. I don't get why this is not POST. So
  right now I'm not sure if it's mistakenly thinking it's a GET when it
  is indeed a POST, or if it's really a GET. Does anyone have any
  recommendation on how I can figure this out (eg. some tool not
  associated with wicket)?
 
  Thanks,
  Lowell
 


 --
 Erik van Oosten
 http://2007.rubyenrails.nl/
 http://www.day-to-day-stuff.blogspot.com/

 --
 View this message in context: 
 http://www.nabble.com/POST-form-submissions-being-converted-to-GETs-tf3725515.html#a10426535
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] POST form submissions being converted to GETs

2007-05-11 Thread Eelco Hillenius
It's a great pattern in general, as you never have to worry again
about users re-submitting the form when they press refresh or the back
button.

If you want to break out in specific cases,
RequestCycle.get().setRedirect(false) in your form's onSubmit method
should do the trick. If you don't want to use the pattern to start
with, you can call

getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER);

in your application's init method.

Eelco

On 5/11/07, Lowell Kirsh [EMAIL PROTECTED] wrote:
 Thanks for the advice. That is unfortunate in my case. But that's a
 bit off topic from this, so I will post another message.

 On 5/10/07, Erik van Oosten [EMAIL PROTECTED] wrote:
 
  Wicket will always do a redirect after the POST. So the information you are
  seeing is from the second request, which is a GET.
 
  You can install LiveHTTPHeaders in FireFox. There is something similar for
  IE.
 
  Regards,
  Erik.
 
 
 
  Lowell Kirsh wrote:
  
   I have a wicket form which is supposed to be POSTing its data. Looking
   at the generated page, it is indeed method=post. But the page that
   it redirects to thinks that it is a GET. I found this information by
   doing:
  
   WebRequest request = (WebRequest) RequestCycle.get().getRequest();
   String method = request.getHttpServletRequest().getMethod();
  
   In this case, method is GET. I don't get why this is not POST. So
   right now I'm not sure if it's mistakenly thinking it's a GET when it
   is indeed a POST, or if it's really a GET. Does anyone have any
   recommendation on how I can figure this out (eg. some tool not
   associated with wicket)?
  
   Thanks,
   Lowell
  
 
 
  --
  Erik van Oosten
  http://2007.rubyenrails.nl/
  http://www.day-to-day-stuff.blogspot.com/
 
  --
  View this message in context: 
  http://www.nabble.com/POST-form-submissions-being-converted-to-GETs-tf3725515.html#a10426535
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user