Jeremy Thomerson-5 wrote:
> 
> Bummer - if you didn't throw in the towel, I'd be interested in seeing
> the result.  All session-relative wicket links are going to have a
> very distinct pattern that should be fairly easy [sic] to get in the
> pattern and not rewrite.
> 
> Mind posting your rewrite code and maybe somebody can help with the
> regex?  I may not be able to help, but I have put together some pretty
> hideous regex in my time.
> 

Here's the link to the quickstart:
http://www.nabble.com/file/p23208312/myproject.zip myproject.zip 

Some notes:
1) This won't work as written in Jetty. Jetty uses an unmodifiable map for
request parameters so to make it work in Jetty, one would need to change the
rewrite rule to set a request attribute instead of a request parameter.

2) I had to include the jar for the 3.2.0 version of the URL Rewrite filter
as it isn't in the central Maven repo yet. 

3) Instead of launching to the start page of the app I would recommend going
straight to "http://localhost:8080/whateveryouwant/testpage1";. Replace 
"whateveryouwant" with anything. That's the value that will be rewritten out
of the URL and set as a request parameter with the name "organization". 

4) I'm using the HybridUrlCodingStrategy for URLs. You should be able to use
any URL coding stratgy, but since this is what I'm using in my main app,
it's what I've configured the rule for.


-Matt

-- 
View this message in context: 
http://www.nabble.com/AjaxLink-causing-a-redirect-tp23189186p23208312.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to