Hi,

You can use custom IRequestMapper that reads the url and asks the DB which
page to use.
Use WebApplication#setRootRequestMapper() to set it.
See
https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/LocaleFirstMapper.java?source=c

https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper/RequestMapperApplication.java#L55
for example


Martin Grigorov
Wicket Training and Consulting


On Tue, Jan 28, 2014 at 3:24 PM, armandoxxx <armando....@dropchop.com>wrote:

> Hey guys
>
> I'm working on some dynamic page loading and would like to know how it's
> supposed to be done in wicket (6.x) ... without mappings in my application
> class.
>
> The example:
> some urls (for example /news, /article, /people) are bind by users (in
> admin
> console) to a some page ...
> /news >> LayoutPage1
> /article >> LayoutPage2
> /people >> LayoutPage1
> this mapping is written in database and not in application class, because
> users can set whatever URL and select whatever page to be shown for that
> URL.
>
> I would like know where to put this resolving from URL TO PAGE and how to
> render the page ...
>
> Any help would be appreciated
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-page-from-url-part-without-hardcoded-mapping-in-application-class-tp4663992.html
> Sent from the Users forum 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
>
>

Reply via email to