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. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 22, 2009 at 11:44 PM, Matt Welch <matt...@welchkin.net> wrote: > > Hmmm.... perhaps it was a byproduct of the URL rewriting. As it turns out, > even with normal PageLinks this redirect occurs. BookmarkablePageLinks do > not cause the redirect. What's odd is that the redirect doesn't actually > change anything. > > With the URL rewriting disabled, there are no redirects. > > Anyway it's no big deal. I think I'm going to have to give up on this URL > rewriting stuff anyway. I was trying out URL Rewrite Filter > (http://tuckey.org/urlrewrite/) and I was getting pretty close to what I > needed (see my original thread on this topic: > http://www.nabble.com/Custom-URL-Handling-to23130367.html which you actually > responded too. You're a busy fellow!). It rewrites both incoming and > outgoing URLs. The incoming rewrites are fairly obvious, but the outbound > ones are done by embedding itself as part of the response.encodeURL() call. > > I managed to get the incoming URL rewrites working perfectly but some of the > outbound URLs refuse to cooperate. Things like Wicket ajax calls and these > redirects were popping up as obstacles. Maybe if I were a little more of a > regex expert I could get this to work, but I'm close to throwing in the > towel at this point. > > -Matt > > > > > > Jeremy Thomerson-5 wrote: >> >> Do you mean while loading a page that has an ajax link you are >> redirected to another? Please provide example (URLs and code). >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> >> >> >> On Wed, Apr 22, 2009 at 9:25 PM, Matthew Welch <matt...@welchkin.net> >> wrote: >>> I've been playing around with URL rewriting a bit and have run across >>> some >>> promising techniques. While testing these techniques, I've been slowly >>> loading up my pages with a number of different kinds of actions and >>> links. >>> Everything was working pretty smoothly until I got put my first AjaxLink >>> on >>> the page. For some reason, just the presence of an AjaxLink causes a >>> redirect during the processing of the page. Remove the AjaxLink; no >>> redirect. >>> >>> I'm not questioning the necessity of this as I'm sure there's a good >>> reason. >>> I am curious though. Why does this happen? >>> >>> Matt >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://www.nabble.com/AjaxLink-causing-a-redirect-tp23189186p23189693.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