Where would I find an example?  I could not find any on wiki, wicket.sourceforge.net, or in examples.  
 
The javadoc is not clear how to use ApplicationPages except that I need to use putClassAlias method.  What object, if any, needs reference to the ApplicationPages object with the aliases?
 
Thanks,
Jeff

Johan Compagner <[EMAIL PROTECTED]> wrote:
there is already support for page aliasses see ApplicationPages



On 11/4/05, Jeff Miller <[EMAIL PROTECTED]> wrote:
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);
        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.




Jeff Miller
[EMAIL PROTECTED]


Yahoo! FareChase - Search multiple travel sites in one click.

Reply via email to