Author: ivaynberg
Date: Fri Feb 5 03:06:42 2010
New Revision: 906786
URL: http://svn.apache.org/viewvc?rev=906786&view=rev
Log:
make request utils work in non-wicket threads
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java
URL:
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java?rev=906786&r1=906785&r2=906786&view=diff
==============================================================================
---
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java
(original)
+++
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/RequestUtils.java
Fri Feb 5 03:06:42 2010
@@ -233,7 +233,7 @@
* current request but to whatever the browser
has in its url
* bar
*/
- if (RequestCycle.get() != null
+ if (RequestCycle.get() == null ||
RequestCycle.get() != null
&&
!((WebRequest)RequestCycle.get().getRequest()).isAjax())
{
// Delete last slash from result