You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sean Brookes <sb...@saba.com> on 2009/01/28 07:56:38 UTC
set mountPath for BookmarkablePageLink
I am working on some RESTful navigation and have run across an issue with ver
1.3.x.
I would like to specify multiple mountPath names to the same Page class eg:
mount(new IndexedParamUrlCodingStrategy(
"internal",Class.forName("com.xyz.unittest.framework.layout.LandingPage")));
mount(new IndexedParamUrlCodingStrategy(
"external",Class.forName("com.xyz.unittest.framework.layout.LandingPage")));
mount(new IndexedParamUrlCodingStrategy(
"custom",Class.forName("com.xyz.unittest.framework.layout.LandingPage")));
So that in addition to the indexed set of parameters I can also use the
mountPath name to configure the page response.
So far so good but the problem is how to specify a particular mountPath when
creating the BookmarkablePageLink. Is there there a straightforward way to
specify the mount path?
I have searched the forum and google and would have thought this would have
come up as an issue for someone else so maybe I am approaching this the
wrong way.
I realize I can do this with just the parameters passed to the page but we
have a diverse set of 'page views' and I would like to minimize the number
of page classes we have to 'mount'
I have also played around with using the ExternalLink and managing the URL
construction manually but it feels clunky.
Regards,
Sean
--
View this message in context: http://www.nabble.com/set-mountPath-for-BookmarkablePageLink-tp21700838p21700838.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: set mountPath for BookmarkablePageLink
Posted by jWeekend <jw...@cabouge.com>.
Sean,
I was looking into this with one of our students last week and also had a
quick chat with Igor about it. You cannot specify which one of your multiple
mount paths a BookmarkablePageLink to your page will render .
Regards - Cemal
http://www.jWeekend.co.uk jWeekend
Sean Brookes wrote:
>
> I am working on some RESTful navigation and have run across an issue with
> ver 1.3.x.
>
> I would like to specify multiple mountPath names to the same Page class
> eg:
>
> mount(new IndexedParamUrlCodingStrategy(
> "internal",Class.forName("com.xyz.unittest.framework.layout.LandingPage")));
> mount(new IndexedParamUrlCodingStrategy(
> "external",Class.forName("com.xyz.unittest.framework.layout.LandingPage")));
> mount(new IndexedParamUrlCodingStrategy(
> "custom",Class.forName("com.xyz.unittest.framework.layout.LandingPage")));
>
> So that in addition to the indexed set of parameters I can also use the
> mountPath name to configure the page response.
>
> So far so good but the problem is how to specify a particular mountPath
> when creating the BookmarkablePageLink. Is there there a straightforward
> way to specify the mount path?
>
> I have searched the forum and google and would have thought this would
> have come up as an issue for someone else so maybe I am approaching this
> the wrong way.
>
> I realize I can do this with just the parameters passed to the page but we
> have a diverse set of 'page views' and I would like to minimize the number
> of page classes we have to 'mount'
>
> I have also played around with using the ExternalLink and managing the URL
> construction manually but it feels clunky.
>
> Regards,
> Sean
>
>
--
View this message in context: http://www.nabble.com/set-mountPath-for-BookmarkablePageLink-tp21700838p21793879.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org