You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martijn Lindhout <ml...@jointeffort.nl> on 2008/02/27 16:31:30 UTC
Mounting dynamic URLs
Hi All,
How do I mount a friendly URL with a dynamic last part. I.e. I want the
following URL's to be handled by a profile page which contents depends on
the last part. Is this possible?
http://localhost/myApp/profile/wsmith
http://localhost/myApp/profile/stiger
--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
mlindhout@jointeffort.nl
+31 (0)6 18 47 25 29
Re: Mounting dynamic URLs
Posted by Martijn Lindhout <ml...@jointeffort.nl>.
wow! It's really that simple.
thanx
2008/2/27, Gerolf Seitz <ge...@gmail.com>:
>
> in MyWebApplication.init() {
> mount(new IndexedParamUrlCodingStrategy("bla", MyPage.class));
> }
>
> Gerolf
>
> On Wed, Feb 27, 2008 at 8:46 PM, Martijn Lindhout <
> mlindhout@jointeffort.nl>
>
> wrote:
>
> > eh... an extra question.
> >
> > How do I enable the IndexedParamUrlCodingStrategy for only one page?
> > According to the docs, I have to override the method in the
> > requestCycleProcessor, but then it is active for all request....
> >
> > 2008/2/27, Martijn Lindhout <ml...@jointeffort.nl>:
> > >
> > > thanx!
> > >
> > > 2008/2/27, Thomas Kappler <tk...@googlemail.com>:
> > > >
> > > > Hi Martjin,
> > > >
> > > > Nathan has implemented that in his "Recipe Book" example app:
> > > > http://databinder.net/recipe. Have a look at the first constructor
> of
> > > > RecipeBook.
> > > >
> > > >
> > > > Thomas
> > > >
> > > >
> > > >
> > > >
> > > > On Wed, Feb 27, 2008 at 4:31 PM, Martijn Lindhout
> > > > <ml...@jointeffort.nl> wrote:
> > > > > Hi All,
> > > > >
> > > > > How do I mount a friendly URL with a dynamic last part. I.e. I
> want
> > > > the
> > > > > following URL's to be handled by a profile page which contents
> > > > depends on
> > > > > the last part. Is this possible?
> > > > >
> > > > > http://localhost/myApp/profile/wsmith
> > > > > http://localhost/myApp/profile/stiger
> > > > >
> > > > > --
> > > > > Martijn Lindhout
> > > > > JointEffort IT Services
> > > > > http://www.jointeffort.nl
> > > > > mlindhout@jointeffort.nl
> > > > > +31 (0)6 18 47 25 29
> > > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Martijn Lindhout
> > > JointEffort IT Services
> > > http://www.jointeffort.nl
> > > mlindhout@jointeffort.nl
> > > +31 (0)6 18 47 25 29
> > >
> >
> >
> >
> > --
> > Martijn Lindhout
> > JointEffort IT Services
> > http://www.jointeffort.nl
> > mlindhout@jointeffort.nl
> > +31 (0)6 18 47 25 29
> >
>
--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
mlindhout@jointeffort.nl
+31 (0)6 18 47 25 29
Re: Mounting dynamic URLs
Posted by Gerolf Seitz <ge...@gmail.com>.
in MyWebApplication.init() {
mount(new IndexedParamUrlCodingStrategy("bla", MyPage.class));
}
Gerolf
On Wed, Feb 27, 2008 at 8:46 PM, Martijn Lindhout <ml...@jointeffort.nl>
wrote:
> eh... an extra question.
>
> How do I enable the IndexedParamUrlCodingStrategy for only one page?
> According to the docs, I have to override the method in the
> requestCycleProcessor, but then it is active for all request....
>
> 2008/2/27, Martijn Lindhout <ml...@jointeffort.nl>:
> >
> > thanx!
> >
> > 2008/2/27, Thomas Kappler <tk...@googlemail.com>:
> > >
> > > Hi Martjin,
> > >
> > > Nathan has implemented that in his "Recipe Book" example app:
> > > http://databinder.net/recipe. Have a look at the first constructor of
> > > RecipeBook.
> > >
> > >
> > > Thomas
> > >
> > >
> > >
> > >
> > > On Wed, Feb 27, 2008 at 4:31 PM, Martijn Lindhout
> > > <ml...@jointeffort.nl> wrote:
> > > > Hi All,
> > > >
> > > > How do I mount a friendly URL with a dynamic last part. I.e. I want
> > > the
> > > > following URL's to be handled by a profile page which contents
> > > depends on
> > > > the last part. Is this possible?
> > > >
> > > > http://localhost/myApp/profile/wsmith
> > > > http://localhost/myApp/profile/stiger
> > > >
> > > > --
> > > > Martijn Lindhout
> > > > JointEffort IT Services
> > > > http://www.jointeffort.nl
> > > > mlindhout@jointeffort.nl
> > > > +31 (0)6 18 47 25 29
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> >
> > --
> > Martijn Lindhout
> > JointEffort IT Services
> > http://www.jointeffort.nl
> > mlindhout@jointeffort.nl
> > +31 (0)6 18 47 25 29
> >
>
>
>
> --
> Martijn Lindhout
> JointEffort IT Services
> http://www.jointeffort.nl
> mlindhout@jointeffort.nl
> +31 (0)6 18 47 25 29
>
Re: Mounting dynamic URLs
Posted by Martijn Lindhout <ml...@jointeffort.nl>.
eh... an extra question.
How do I enable the IndexedParamUrlCodingStrategy for only one page?
According to the docs, I have to override the method in the
requestCycleProcessor, but then it is active for all request....
2008/2/27, Martijn Lindhout <ml...@jointeffort.nl>:
>
> thanx!
>
> 2008/2/27, Thomas Kappler <tk...@googlemail.com>:
> >
> > Hi Martjin,
> >
> > Nathan has implemented that in his "Recipe Book" example app:
> > http://databinder.net/recipe. Have a look at the first constructor of
> > RecipeBook.
> >
> >
> > Thomas
> >
> >
> >
> >
> > On Wed, Feb 27, 2008 at 4:31 PM, Martijn Lindhout
> > <ml...@jointeffort.nl> wrote:
> > > Hi All,
> > >
> > > How do I mount a friendly URL with a dynamic last part. I.e. I want
> > the
> > > following URL's to be handled by a profile page which contents
> > depends on
> > > the last part. Is this possible?
> > >
> > > http://localhost/myApp/profile/wsmith
> > > http://localhost/myApp/profile/stiger
> > >
> > > --
> > > Martijn Lindhout
> > > JointEffort IT Services
> > > http://www.jointeffort.nl
> > > mlindhout@jointeffort.nl
> > > +31 (0)6 18 47 25 29
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Martijn Lindhout
> JointEffort IT Services
> http://www.jointeffort.nl
> mlindhout@jointeffort.nl
> +31 (0)6 18 47 25 29
>
--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
mlindhout@jointeffort.nl
+31 (0)6 18 47 25 29
Re: Mounting dynamic URLs
Posted by Martijn Lindhout <ml...@jointeffort.nl>.
thanx!
2008/2/27, Thomas Kappler <tk...@googlemail.com>:
>
> Hi Martjin,
>
> Nathan has implemented that in his "Recipe Book" example app:
> http://databinder.net/recipe. Have a look at the first constructor of
> RecipeBook.
>
>
> Thomas
>
>
>
>
> On Wed, Feb 27, 2008 at 4:31 PM, Martijn Lindhout
> <ml...@jointeffort.nl> wrote:
> > Hi All,
> >
> > How do I mount a friendly URL with a dynamic last part. I.e. I want the
> > following URL's to be handled by a profile page which contents depends
> on
> > the last part. Is this possible?
> >
> > http://localhost/myApp/profile/wsmith
> > http://localhost/myApp/profile/stiger
> >
> > --
> > Martijn Lindhout
> > JointEffort IT Services
> > http://www.jointeffort.nl
> > mlindhout@jointeffort.nl
> > +31 (0)6 18 47 25 29
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
mlindhout@jointeffort.nl
+31 (0)6 18 47 25 29
Re: Mounting dynamic URLs
Posted by Thomas Kappler <tk...@googlemail.com>.
Hi Martjin,
Nathan has implemented that in his "Recipe Book" example app:
http://databinder.net/recipe. Have a look at the first constructor of
RecipeBook.
Thomas
On Wed, Feb 27, 2008 at 4:31 PM, Martijn Lindhout
<ml...@jointeffort.nl> wrote:
> Hi All,
>
> How do I mount a friendly URL with a dynamic last part. I.e. I want the
> following URL's to be handled by a profile page which contents depends on
> the last part. Is this possible?
>
> http://localhost/myApp/profile/wsmith
> http://localhost/myApp/profile/stiger
>
> --
> Martijn Lindhout
> JointEffort IT Services
> http://www.jointeffort.nl
> mlindhout@jointeffort.nl
> +31 (0)6 18 47 25 29
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Mounting dynamic URLs
Posted by Thijs <vo...@gmail.com>.
mount profile as a page and use the 'stiger' or 'wsmith' as a
parameter to get the profile
check IndexedParamUrlCodingStrategy
Martijn Lindhout schreef:
> Hi All,
>
> How do I mount a friendly URL with a dynamic last part. I.e. I want the
> following URL's to be handled by a profile page which contents depends on
> the last part. Is this possible?
>
> http://localhost/myApp/profile/wsmith
> http://localhost/myApp/profile/stiger
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org