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. :-
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
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
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