https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L54shows
how to create a RequestCycle
and
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L58how
to set it as ThreadLocal

Martin Grigorov
Wicket Training and Consulting


On Tue, May 20, 2014 at 4:40 PM, Sandor Feher <[email protected]> wrote:

> Sorry Martin!
> My code mentioned based on your comment:
>
>
> https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for
>
>  pageHtml = ComponentRenderer.renderPage(pageProvider);
> throws
> org.apache.wicket.WicketRuntimeException: There is no application attached
> to current thread
> because  Application application = Application.get(); returns null
>
> If I use Application application = Application.get("wicket");
> then I get application instance but RequestCycle.get() also returns null.
>
> Did I miss something or I go on completely wrong way ?
>
> Thnx, Sandor
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665964.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to