You have to mount your page via MixedParamUrlCodingStrategy:

mount(new MixedParamUrlCodingStrategy("/company", CompanyPage.class, new
String[] {"companyName"});

and in CompanyPage(PageParameters parameters) constructor do something like
this:

String nameInUrl = parameters.getString();
String company = nameInUrl.substring(0, ...);


On Fri, Apr 10, 2009 at 5:11 PM, DV <huc...@yahoo.com> wrote:

>
> We are evaluating wicket to rewrite our consumer UI.
>
> There is one requirement in which I would like to get advice on.
>
> We have a requirement in which the wildcard url gets dispatched to a
> controller that renders a page. The url pattern is in the form of
> "/company/**-details.html".
>
> We have a single controller that receives the above url and figures out the
> company name and displays the page accordingly or throws a http 404 error if
> the company is not found.
>
> e.g /company/ABC-details.html, /company/TOTO-details.html etc
>
> Can this be done in wicket?
>
> Any advice or hints would be appreciated!
>
> Dinp
>

Reply via email to