Re: URL Rewriting in Wicket

2009-12-14 Thread Erik van Oosten
Actually, you should override the WebRequestProcessor and return a 
custom RequestCodingStrategy from there. The custom 
RequestCodingStrategy would extend one of the default implementation and 
override urlCodingStrategyForPath and getRequestPath.


Regards,
Erik.


Andreas Maza wrote:

Hello,

I would like to do a simple URL rewriting in my application: All requests
containing a given path (e.g., a /x/...) should be filtered and redirected
accordingly.

In other words, for a request to http://www.example.com/x/something I want
to do a database lookup based on the value of something and then redirect
the user to the appropriate wicket page.

What is the recommended way to do this in wicket? Make a hook into the
WebApplication.newRequestCycle() method?

thanks for your help,
andr

  


--

Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: URL Rewriting in Wicket

2009-12-14 Thread A. Maza
Thanks for the hint. I found out that the IndexedParamUrlCodingStrategy 
actually provides exactly what I need...


The fine thing with wicket is that you can realize things really fast - 
great job!


regards,
andr


On 14.12.2009 11:26, Erik van Oosten wrote:

Actually, you should override the WebRequestProcessor and return a
custom RequestCodingStrategy from there. The custom
RequestCodingStrategy would extend one of the default implementation and
override urlCodingStrategyForPath and getRequestPath.

Regards,
Erik.


Andreas Maza wrote:

Hello,

I would like to do a simple URL rewriting in my application: All requests
containing a given path (e.g., a /x/...) should be filtered and
redirected
accordingly.

In other words, for a request to http://www.example.com/x/something I
want
to do a database lookup based on the value of something and then
redirect
the user to the appropriate wicket page.

What is the recommended way to do this in wicket? Make a hook into the
WebApplication.newRequestCycle() method?

thanks for your help,
andr






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



URL Rewriting in Wicket

2009-12-13 Thread Andreas Maza
Hello,

I would like to do a simple URL rewriting in my application: All requests
containing a given path (e.g., a /x/...) should be filtered and redirected
accordingly.

In other words, for a request to http://www.example.com/x/something I want
to do a database lookup based on the value of something and then redirect
the user to the appropriate wicket page.

What is the recommended way to do this in wicket? Make a hook into the
WebApplication.newRequestCycle() method?

thanks for your help,
andr