protected void createNavigation() {
/* Pages can be indexed by any object, not only string.
* The value of the pages map can by either Page or LazyInit
* Using LazyInit allows for creation of forms and their logic (model) only when the page is accessed
*/
pages.put("enter-name", new Page(new EnterNameModel(SampleControler.this), new EnterNameView()));
pages.put("say-hello", new LazyInit(){
public Page create() {
return new Page(new SayHelloModel(SampleControler.this), new SayHelloView());
}
});