It is easy to get a reference to the Application from a non-http-worker thread with Application.get(String)
Martin Grigorov Wicket Training and Consulting On Mon, May 19, 2014 at 1:55 PM, Ondrej Zizka <ozi...@redhat.com> wrote: > Likely because he already has some components, models, and overall logic > to reuse in the mails... > > > > On 18.5.2014 19:51, Paul Borș wrote: > >> You want wicket's page renderer to render some HTML for your email >> content when you have it run inside a quartz thread? >> >> Why can't you just simply use a different template engine like Apache >> Velocity? >> >> Have a great day, >> Paul Bors >> >> On May 15, 2014, at 3:27 PM, Sandor Feher <sfe...@bluesystem.hu> wrote: >>> >>> Hi, >>> >>> I fired up some quartz jobs for sending notification emails at given >>> time. >>> The job controller class is launched from my Application wget it get >>> initialized. >>> Almost everything works except of rendering mail's html body. >>> I would like to do it with wicket's pagerenderer but it throws the >>> following >>> error: >>> >>> org.apache.wicket.WicketRuntimeException: There is no application >>> attached >>> to current thread DefaultQuartzScheduler_Worker-5 >>> >>> I know it has not happen by chance but my class knows nothing about page >>> rendering. >>> The question is how to achieve some elegant way ? >>> I can choose different way but if possible I do it with wicket's page >>> renderer. >>> So please advice! >>> >>> Regards., Sandor >>> >>> >>> >>> >>> >>> -- >>> View this message in context: http://apache-wicket.1842946. >>> n4.nabble.com/Page-rendering-from-quartz-job-tp4665860.html >>> Sent from the Users forum mailing list archive at Nabble.com. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >