IIUC, the home page is automatically mounted on the path where you wicket
app is located.

So, if you put your wicket on "/home", then the home page will be mounted on
/home.

Guess you'll need to put your home page on "/" to make this work.


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
> Tauren Mills
> Sent: 27 June 2008 07:30
> To: users@wicket.apache.org
> Subject: Home page accepting IndexedParamUrlCodingStrategy
>
>
> How do I go about making my HomePage accept index parameters?  I want
> a home page that will accept URLs like:
> localhost:8080/us/ca/sacramento
>
> Instead of having a mount point first, for example /home:
> localhost:8080/home/us/ca/sacramento
>
> I've tried this in my app:
>
> getHomePage() {
>    return HomePage.class;
> }
> init() {
>    mount(new IndexedParamUrlCodingStrategy("/", HomePage.class));
> }
>
> This returns in a 404 error for the home page (localhost:8080/).  I
> also tried with "" instead of "/" as the mount point, but the same
> problem.
>
> If I use this with the /home mount point, everything works perfectly:
> mount(new IndexedParamUrlCodingStrategy("/home", HomePage.class));
>
> FYI... I get the PageParameters in HomePage like this (which is
> working fine);
>
>               setCountry(pageParams.getString("0",null));
>               setState(pageParams.getString("1",null));
>               setCity(pageParams.getString("2",null));
>
> Any suggestions?
>
> Thanks,
> Tauren
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to