Re: Preload All Pages On Startup

2014-06-25 Thread Daniel Jue
Just wanted to comment that I do the same thing at startup and look at annotations attached to the pages, and construct menu items for the pages which have the right kind of annotation. The annotation I made also has a parameter fir the type of page, so the menu items get a corresponding icon. :-

Re: Preload All Pages On Startup

2014-06-25 Thread Thiago H de Paula Figueiredo
On Wed, 25 Jun 2014 05:58:36 -0300, Net Dawg wrote: On server startup, what is the best way to preload all *.tml under [...]resources[...]pages?With all defaults - locale, etc. Templates themselves are tightly tied to their class counterparts, so preloading just templates wouldn't ma

Re: Preload All Pages On Startup

2014-06-25 Thread Dmitry Gusev
You can try this: @Inject private ComponentClassResolver componentClassResolver; @Inject private ComponentSource componentSource; // then if your code: List pageNames = componentClassResolver.getPageNames(); for (String pageName : pageNames) { componentSource.getPage(pa

Preload All Pages On Startup

2014-06-25 Thread Net Dawg
On server startup, what is the best way to preload all *.tml under [...]resources[...]pages?    With all defaults - locale, etc.  In other words, how are tapestry (5.3.x) pages mapped to servlets so that something like this may be attempted in web.xml?    Employees    Employee