I do this :
> In AppModule.java :
>
> public void
> contributeApplicationInitializer(OrderedConfiguration<ApplicationInitializerFilter>
> configuration) {
> configuration.add("mainModuleInitializer", new
> MainModuleInitializer());
> }
>
> With MainModuleInitializer implementing ApplicationInitializerFilter
>
>
Robin Helgelin wrote:
>
> On 8/23/07, Ben Tomasini <[EMAIL PROTECTED]> wrote:
>> I have the same requirement mentioned in #2. What is the best approach
>> to
>> handle this with Tapestry 5? I am thinking of just eager loading a
>> service
>> and invoking the init method in the builder method of the module. Any
>> other
>> thoughts?
>> > 1. I've started changing the quickstart project to move a current
>> > struts2-spring-jdbc application to T5. Where can I put my dao
>> > initialization (creation of hsqldb tables, which used to be done via
>> > my ContextListener class in struts2)?
>
> I use an @EagerLoad service similar to this, example code can be found
> here:
> <http://www.localhost.nu/svn/public/tapestry5-acegi-example/src/main/java/nu/localhost/tapestry/acegi/example/services/AppModule.java>
>
> --
> regards,
> Robin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/T5-questions%3A-adding-my-own-initializations--outputing-pre-formatted-HTML--tree-component--javadoc-tf3872028.html#a12309051
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]