you can create a new instance -igor
On Thu, Sep 2, 2010 at 1:49 PM, Fernando Wermus <[email protected]> wrote: > Igor, > When I don't pass the application I got the following error > > RuntimeException: There is no application attached to current thread > btpool0-3 - /messagebroker/amf > > This is because I need to render the emails from a different servlet. Do I > have any solution for this situation? > > How can I get the WebApplication from a different servlet? > > On Thu, Sep 2, 2010 at 1:26 PM, Igor Vaynberg <[email protected]>wrote: > >> you should pass a new instance of application. wicket tester inits the >> application and so it would call the init method which will execute >> the mounts - and on already initialized instance it would cause that >> error. >> >> -igor >> >> On Thu, Sep 2, 2010 at 9:13 AM, Fernando Wermus >> <[email protected]> wrote: >> > Hi all, >> > I am using wicketTester to render html for emails. I pass my current >> app >> > to WicketTester and I get the following error: >> > >> > WicketRuntimeException: loginPage is already mounted for >> > BookmarkablePageEncoder[page=class com.xxx.LoginPage] >> > >> > Which makes no sense. The Application is running and I just passing it to >> > the WicketTester constructor. >> > >> > any help would be really appreciated. >> > >> > thanks in advance >> > >> > -- >> > Fernando Wermus. >> > >> > www.linkedin.com/in/fernandowermus >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Fernando Wermus. > > www.linkedin.com/in/fernandowermus > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
