Re: Page rendering from quartz job

2014-05-21 Thread Sandor Feher
That's nice and this is exactly what I do.
But I start my job from  init method of my Application class and there is no
RequestCycle there at initialization time. I suppose that because there is
no request has been sent to Application yet. (Nobody uses the application
because it just started).
I think this is why the mentioned examples do not work for me.
The question is where to start my quartz job to get RequestCycle ?

thnx., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665969.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



Re: Page rendering from quartz job

2014-05-21 Thread Martin Grigorov
The answer is: create the request cycle yourself
On May 21, 2014 11:01 AM, Sandor Feher sfe...@bluesystem.hu wrote:

 That's nice and this is exactly what I do.
 But I start my job from  init method of my Application class and there is
 no
 RequestCycle there at initialization time. I suppose that because there is
 no request has been sent to Application yet. (Nobody uses the application
 because it just started).
 I think this is why the mentioned examples do not work for me.
 The question is where to start my quartz job to get RequestCycle ?

 thnx., Sandor

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665969.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




Re: Page rendering from quartz job

2014-05-20 Thread Kees van Dieren
Is it an option to use  an http client library to call your own webapp /
wicket page, fetch contents? Also makes it easier to test it in the browser.

Best regards / Met vriendelijke groet,

Kees van Dieren
Squins IT Solutions BV
Oranjestraat 30
2983 HS Ridderkerk
The Netherlands
Mobile: +31 (0)6 30413841
www.squins.com
Chamber of commerce Rotterdam: 24435103


2014-05-20 7:06 GMT+02:00 Ernesto Reinaldo Barreiro reier...@gmail.com:

 The question is: why introduce another template engine to generate HTML if
 you already have a wonderful one in place? You are not making your task
 depend on wicket you are rolling out a task that uses wicket to generate
 HTML. This is not going to be different if you use velocity as you
 suggested before: you just replace wicket by velocity.


 On Tue, May 20, 2014 at 5:40 AM, Paul Borș p...@bors.ws wrote:

  I'm not sure you want to have you scheduled task/alerts depend on Wicket.
  They should be stand alone services in In their own processes IMOP.
 
  Have a great day,
  Paul Bors
 
   On May 19, 2014, at 7:42 AM, Martin Grigorov mgrigo...@apache.org
  wrote:
  
   See
  
 
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for
   inspiration.
  
   Martin Grigorov
   Wicket Training and Consulting
  
  
   On Mon, May 19, 2014 at 2:30 PM, Sandor Feher sfe...@bluesystem.hu
  wrote:
  
   Ok. Let's say I get the reference. How can I render the page then ?
   Where should I put it ?
  
  
  
   --
   View this message in context:
  
 
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.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
 
 


 --
 Regards - Ernesto Reinaldo Barreiro



Re: Page rendering from quartz job

2014-05-20 Thread Ernesto Reinaldo Barreiro
That's a possibility but it introduces another level on indirection and
might slow down generation.


On Tue, May 20, 2014 at 8:18 AM, Kees van Dieren i...@squins.com wrote:

 Is it an option to use  an http client library to call your own webapp /
 wicket page, fetch contents? Also makes it easier to test it in the
 browser.

 Best regards / Met vriendelijke groet,

 Kees van Dieren
 Squins IT Solutions BV
 Oranjestraat 30
 2983 HS Ridderkerk
 The Netherlands
 Mobile: +31 (0)6 30413841
 www.squins.com
 Chamber of commerce Rotterdam: 24435103


 2014-05-20 7:06 GMT+02:00 Ernesto Reinaldo Barreiro reier...@gmail.com:

  The question is: why introduce another template engine to generate HTML
 if
  you already have a wonderful one in place? You are not making your task
  depend on wicket you are rolling out a task that uses wicket to generate
  HTML. This is not going to be different if you use velocity as you
  suggested before: you just replace wicket by velocity.
 
 
  On Tue, May 20, 2014 at 5:40 AM, Paul Borș p...@bors.ws wrote:
 
   I'm not sure you want to have you scheduled task/alerts depend on
 Wicket.
   They should be stand alone services in In their own processes IMOP.
  
   Have a great day,
   Paul Bors
  
On May 19, 2014, at 7:42 AM, Martin Grigorov mgrigo...@apache.org
   wrote:
   
See
   
  
 
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for
inspiration.
   
Martin Grigorov
Wicket Training and Consulting
   
   
On Mon, May 19, 2014 at 2:30 PM, Sandor Feher sfe...@bluesystem.hu
 
   wrote:
   
Ok. Let's say I get the reference. How can I render the page then ?
Where should I put it ?
   
   
   
--
View this message in context:
   
  
 
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.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
  
  
 
 
  --
  Regards - Ernesto Reinaldo Barreiro
 




-- 
Regards - Ernesto Reinaldo Barreiro


Re: Page rendering from quartz job

2014-05-20 Thread Martin Grigorov
and also can eat all your http threads and may lead to deadlock because (in
the worst case) every normal request to your app will create an inner
request to the same web container

Martin Grigorov
Wicket Training and Consulting


On Tue, May 20, 2014 at 9:44 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 That's a possibility but it introduces another level on indirection and
 might slow down generation.


 On Tue, May 20, 2014 at 8:18 AM, Kees van Dieren i...@squins.com wrote:

  Is it an option to use  an http client library to call your own webapp /
  wicket page, fetch contents? Also makes it easier to test it in the
  browser.
 
  Best regards / Met vriendelijke groet,
 
  Kees van Dieren
  Squins IT Solutions BV
  Oranjestraat 30
  2983 HS Ridderkerk
  The Netherlands
  Mobile: +31 (0)6 30413841
  www.squins.com
  Chamber of commerce Rotterdam: 24435103
 
 
  2014-05-20 7:06 GMT+02:00 Ernesto Reinaldo Barreiro reier...@gmail.com
 :
 
   The question is: why introduce another template engine to generate HTML
  if
   you already have a wonderful one in place? You are not making your task
   depend on wicket you are rolling out a task that uses wicket to
 generate
   HTML. This is not going to be different if you use velocity as you
   suggested before: you just replace wicket by velocity.
  
  
   On Tue, May 20, 2014 at 5:40 AM, Paul Borș p...@bors.ws wrote:
  
I'm not sure you want to have you scheduled task/alerts depend on
  Wicket.
They should be stand alone services in In their own processes IMOP.
   
Have a great day,
Paul Bors
   
 On May 19, 2014, at 7:42 AM, Martin Grigorov mgrigo...@apache.org
 
wrote:

 See

   
  
 
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for
 inspiration.

 Martin Grigorov
 Wicket Training and Consulting


 On Mon, May 19, 2014 at 2:30 PM, Sandor Feher 
 sfe...@bluesystem.hu
  
wrote:

 Ok. Let's say I get the reference. How can I render the page then
 ?
 Where should I put it ?



 --
 View this message in context:

   
  
 
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.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
   
   
  
  
   --
   Regards - Ernesto Reinaldo Barreiro
  
 



 --
 Regards - Ernesto Reinaldo Barreiro



Re: Page rendering from quartz job

2014-05-20 Thread Ernesto Reinaldo Barreiro
and if you want to test that panel/page in a browser you just have to
mount/visit it as it will be not be different form other pages on your
application.


On Tue, May 20, 2014 at 8:47 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 and also can eat all your http threads and may lead to deadlock because (in
 the worst case) every normal request to your app will create an inner
 request to the same web container

 Martin Grigorov
 Wicket Training and Consulting


 On Tue, May 20, 2014 at 9:44 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

  That's a possibility but it introduces another level on indirection and
  might slow down generation.
 
 
  On Tue, May 20, 2014 at 8:18 AM, Kees van Dieren i...@squins.com
 wrote:
 
   Is it an option to use  an http client library to call your own webapp
 /
   wicket page, fetch contents? Also makes it easier to test it in the
   browser.
  
   Best regards / Met vriendelijke groet,
  
   Kees van Dieren
   Squins IT Solutions BV
   Oranjestraat 30
   2983 HS Ridderkerk
   The Netherlands
   Mobile: +31 (0)6 30413841
   www.squins.com
   Chamber of commerce Rotterdam: 24435103
  
  
   2014-05-20 7:06 GMT+02:00 Ernesto Reinaldo Barreiro 
 reier...@gmail.com
  :
  
The question is: why introduce another template engine to generate
 HTML
   if
you already have a wonderful one in place? You are not making your
 task
depend on wicket you are rolling out a task that uses wicket to
  generate
HTML. This is not going to be different if you use velocity as you
suggested before: you just replace wicket by velocity.
   
   
On Tue, May 20, 2014 at 5:40 AM, Paul Borș p...@bors.ws wrote:
   
 I'm not sure you want to have you scheduled task/alerts depend on
   Wicket.
 They should be stand alone services in In their own processes IMOP.

 Have a great day,
 Paul Bors

  On May 19, 2014, at 7:42 AM, Martin Grigorov 
 mgrigo...@apache.org
  
 wrote:
 
  See
 

   
  
 
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for
  inspiration.
 
  Martin Grigorov
  Wicket Training and Consulting
 
 
  On Mon, May 19, 2014 at 2:30 PM, Sandor Feher 
  sfe...@bluesystem.hu
   
 wrote:
 
  Ok. Let's say I get the reference. How can I render the page
 then
  ?
  Where should I put it ?
 
 
 
  --
  View this message in context:
 

   
  
 
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.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


   
   
--
Regards - Ernesto Reinaldo Barreiro
   
  
 
 
 
  --
  Regards - Ernesto Reinaldo Barreiro
 




-- 
Regards - Ernesto Reinaldo Barreiro


Re: Page rendering from quartz job

2014-05-20 Thread Sandor Feher
Huh guys, I just see the my topic became hot :).
So far so good. Now I get wicket application instance but RequestCycle is
null of course.
How can I get over that ?
Thnx!





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665962.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



Re: Page rendering from quartz job

2014-05-20 Thread Martin Grigorov
read my earlier answer with ComponentRenderer.java

Martin Grigorov
Wicket Training and Consulting


On Tue, May 20, 2014 at 4:14 PM, Sandor Feher sfe...@bluesystem.hu wrote:

 Huh guys, I just see the my topic became hot :).
 So far so good. Now I get wicket application instance but RequestCycle is
 null of course.
 How can I get over that ?
 Thnx!





 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665962.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




Re: Page rendering from quartz job

2014-05-20 Thread Sandor Feher
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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page rendering from quartz job

2014-05-20 Thread Martin Grigorov
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 sfe...@bluesystem.hu 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Page rendering from quartz job

2014-05-19 Thread Ondrej Zizka
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



Re: Page rendering from quartz job

2014-05-19 Thread Martin Grigorov
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




Re: Page rendering from quartz job

2014-05-19 Thread Sandor Feher
Yes. I would do it if possible within Wicket. If not then I will do it with a
html template file with simple search and replace constans way.
I just don't want to reinvent the wheel :)




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665932.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



Re: Page rendering from quartz job

2014-05-19 Thread Sandor Feher
Ok. Let's say I get the reference. How can I render the page then ? 
Where should I put it ?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.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



Re: Page rendering from quartz job

2014-05-19 Thread Martin Grigorov
See
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for
inspiration.

Martin Grigorov
Wicket Training and Consulting


On Mon, May 19, 2014 at 2:30 PM, Sandor Feher sfe...@bluesystem.hu wrote:

 Ok. Let's say I get the reference. How can I render the page then ?
 Where should I put it ?



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.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




Re: Page rendering from quartz job

2014-05-19 Thread Paul Borș
I'm not sure you want to have you scheduled task/alerts depend on Wicket.
They should be stand alone services in In their own processes IMOP.

Have a great day,
Paul Bors

 On May 19, 2014, at 7:42 AM, Martin Grigorov mgrigo...@apache.org wrote:
 
 See
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for
 inspiration.
 
 Martin Grigorov
 Wicket Training and Consulting
 
 
 On Mon, May 19, 2014 at 2:30 PM, Sandor Feher sfe...@bluesystem.hu wrote:
 
 Ok. Let's say I get the reference. How can I render the page then ?
 Where should I put it ?
 
 
 
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.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



Re: Page rendering from quartz job

2014-05-19 Thread Ernesto Reinaldo Barreiro
The question is: why introduce another template engine to generate HTML if
you already have a wonderful one in place? You are not making your task
depend on wicket you are rolling out a task that uses wicket to generate
HTML. This is not going to be different if you use velocity as you
suggested before: you just replace wicket by velocity.


On Tue, May 20, 2014 at 5:40 AM, Paul Borș p...@bors.ws wrote:

 I'm not sure you want to have you scheduled task/alerts depend on Wicket.
 They should be stand alone services in In their own processes IMOP.

 Have a great day,
 Paul Bors

  On May 19, 2014, at 7:42 AM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  See
 
 https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/util/string/ComponentRenderer.java#L46for
  inspiration.
 
  Martin Grigorov
  Wicket Training and Consulting
 
 
  On Mon, May 19, 2014 at 2:30 PM, Sandor Feher sfe...@bluesystem.hu
 wrote:
 
  Ok. Let's say I get the reference. How can I render the page then ?
  Where should I put it ?
 
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665933.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




-- 
Regards - Ernesto Reinaldo Barreiro


Re: Page rendering from quartz job

2014-05-18 Thread Paul Borș
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



Page rendering from quartz job

2014-05-16 Thread Sandor Feher
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