Is there a way to create bookmarkable page without embedding any of the Wicket implementation details in the url? For example, the template example page 2 url is:
However, "bookmarkablePage=wicket.examples.template" is a Wicket implementation detail that is used because Wicket needs it and not because it is relevant to the url. It would be good if the url could be simpler like:
Now I realize that Wicket needs to know how to map "Page2" to "wicket.examples.template.Page2". One way to accomplish this could be to add a method to WebApplication like addAlias(String alias, Class page). For example:
public class TemplateApplication extends WicketExampleApplication
{
public TemplateApplication()
{
getPages().setHomePage(Page1.class);
{
public TemplateApplication()
{
getPages().setHomePage(Page1.class);
addAlias("Page1", Page1.class);
addAlias("Page2", Page2.class);
}
}
}
}
Here are some articles that recommend keeping implementation details out of urls:
Thanks,
Jeff
Jeff Miller
[EMAIL PROTECTED]
Yahoo! FareChase - Search multiple travel sites in one click.
