You can try this:
@Inject private ComponentClassResolver componentClassResolver;
@Inject private ComponentSource componentSource;
// then if your code:
List<String> pageNames = componentClassResolver.getPageNames();
for (String pageName : pageNames)
{
componentSource.getPage(pageName);
}
On Wed, Jun 25, 2014 at 12:58 PM, Net Dawg <[email protected]>
wrote:
> 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?
>
>
>
> <servlet>
> <servlet-name>Employees</servlet-name>
> <display-name>Employees</display-name>
> <servlet-class>
> org.apache.tapestry.ApplicationServlet</servlet-class>
> <load-on-startup>2</load-on-startup>
> </servlet>
--
Dmitry Gusev
AnjLab Team
http://anjlab.com