Re: Have root URL render some page other than the "index" page

2018-01-11 Thread Cezary Biernacki
I am pretty sure that SymbolConstants are version 5.3 and probably even in 5.0. Anyway you need to put contribution "tapestry.start-page-name" in your app module class (usually called AppModule if you use default Tapestry settings in web.xml): public static void contributeApplicationDefaults(Mapp

Re: Have root URL render some page other than the "index" page

2018-01-11 Thread Pratik Patel
Thanks. I am using version 5.3.8 which does not have class SymbolConstants. I tried passing following context-param through web.xml but that is not working either. tapestry.start-page-name foo On Thu, Jan 11, 2018 at 6:07 PM, Cezary Biernacki wrote: > You can use contribute symbol "

Re: Have root URL render some page other than the "index" page

2018-01-11 Thread Cezary Biernacki
You can use contribute symbol "tapestry.start-page-name" (see org.apache.tapestry5.SymbolConstants#START_PAGE_NAME), e.g. by adding such method in your AppModule class: public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add(SymbolConstan

Re: Have root URL render some page other than the "index" page

2018-01-11 Thread Pratik Patel
I am using tapestry version 5.3.8.

Have root URL render some page other than the "index" page

2018-01-11 Thread Pratik Patel
Hi All, Is it possible to override the behavior of tapestry so that root URL renders some page "foo" instead of "index"? If some URL is not found then tapestry renders index page. I want to override this behavior so that instead of "index" page, it renders page "foo". How can I achieve this? Tha