You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ryan McKinley <ry...@gmail.com> on 2008/10/31 22:53:21 UTC
clever wicket link renaming? context path?
Hello-
I've been happily running my app on the root context path... but now I
need to run it on something else.
Throughout my html code, I have links that look like this:
<a href="/mount/param1/param2/">...</a>
this links to a bookmarkable page with a URL coding strategy.
Now I need to run the application on a different context and wonder
wicket can automagically translate all static urls that start with "/"
to be include the context path. I'd like to have all the links
written as: <a href="/context/mount/param1...
I know I could re-implement everything with explicit BookmarkableLink
components, but I was hoping there may be something in wicket I don't
know about ;)
thanks in advance for any pointers!
best
ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: clever wicket link renaming? context path?
Posted by Igor Vaynberg <ig...@gmail.com>.
you can write your own IMarkupFilter and modify the markup as it is
loaded into wicket.
-igor
On Fri, Oct 31, 2008 at 2:53 PM, Ryan McKinley <ry...@gmail.com> wrote:
> Hello-
>
> I've been happily running my app on the root context path... but now I need
> to run it on something else.
>
> Throughout my html code, I have links that look like this:
> <a href="/mount/param1/param2/">...</a>
> this links to a bookmarkable page with a URL coding strategy.
>
> Now I need to run the application on a different context and wonder wicket
> can automagically translate all static urls that start with "/" to be
> include the context path. I'd like to have all the links written as: <a
> href="/context/mount/param1...
>
> I know I could re-implement everything with explicit BookmarkableLink
> components, but I was hoping there may be something in wicket I don't know
> about ;)
>
> thanks in advance for any pointers!
>
> best
> ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: clever wicket link renaming? context path?
Posted by James Carman <ja...@carmanconsulting.com>.
Have you tried using <wicket:link> to surround your <a> elements?
On Fri, Oct 31, 2008 at 5:53 PM, Ryan McKinley <ry...@gmail.com> wrote:
> Hello-
>
> I've been happily running my app on the root context path... but now I need
> to run it on something else.
>
> Throughout my html code, I have links that look like this:
> <a href="/mount/param1/param2/">...</a>
> this links to a bookmarkable page with a URL coding strategy.
>
> Now I need to run the application on a different context and wonder wicket
> can automagically translate all static urls that start with "/" to be
> include the context path. I'd like to have all the links written as: <a
> href="/context/mount/param1...
>
> I know I could re-implement everything with explicit BookmarkableLink
> components, but I was hoping there may be something in wicket I don't know
> about ;)
>
> thanks in advance for any pointers!
>
> best
> ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org