I'd use a WebPage with custom template loading (see
http://wicketstuff.org/wicket14/customresourceloading/)
Mount this page for all URLs with static data.

Then the current URL can be found with
String pageUrl = getRequest().getPath();

load the appropriate .html depending on 'pageUrl'.

On Thu, Jul 22, 2010 at 4:19 PM, Arjun Dhar <dhar...@yahoo.com> wrote:

>
> Hi,
>  a section of my website is static pages (template) but no need of
> injecting
> any components
> [I prefer getting as much dine through inheritance cleanly over Panels].
>
> Each markup has to have a corresponding WebPage in wicket.
> I'm exploring the ASM library with CGLIB to auto generate classes for
> static
> templates ...is there any wicket way of doing this already?
>
> ..or if someone has a Wicket way or even the CGLIB/JAVASSIST/ASM code ready
> to go, I'd appreciate it.
>
> thanks
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-autogenerate-WebPage-classes-for-static-pages-tp2298749p2298749.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
>
>

Reply via email to