Re: Getting the html output of a wicket page

2010-10-15 Thread elesi

Thanks for the reply

I tried the code, but it seems that calling it from java's main() method
doesn't work.
i got this error:
org.apache.wicket.WicketRuntimeException: There is no application attached
to current thread main
Could i have some insights on why this happened?

I think i'll have to run it from a separate thread...

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Getting-the-html-output-of-a-wicket-page-tp2994739p2996646.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: Getting the html output of a wicket page

2010-10-15 Thread Jeremy Thomerson

 i got this error:
 org.apache.wicket.WicketRuntimeException: There is no application attached
 to current thread main
 Could i have some insights on why this happened?


Yeah, it happened because your application isn't available (i.e., calling
Application.get() returns null or errors).  When running as a webapp, the
web app is created from your web.xml configuration when the container starts
and Wicket puts the Application into a ThreadLocal at the beginning of each
request.  You need to do something to set up the application yourself if
you're running this outside of the container.  If this is your goal, see the
examples for running WicketTester - they show how to set up your application
outside the container.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Getting the html output of a wicket page

2010-10-13 Thread elesi

Hello guys,

I'm trying to send a email with a body that is HTML-formatted...and I would
to use wicket to write it out...

Is there a way that I could store the markup (with all the tags and stuff)
of a wicket-rendered web page into a string variable?

I thought the getMarkupResourceStream() would work, but i don't know where
it will be called...



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Getting-the-html-output-of-a-wicket-page-tp2994739p2994739.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: Getting the html output of a wicket page

2010-10-13 Thread Martin Makundi
Hi!

Try this:

http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tp2993717p2993717.html

**
Martin

2010/10/14 elesi jsar...@gmail.com:

 Hello guys,

 I'm trying to send a email with a body that is HTML-formatted...and I would
 to use wicket to write it out...

 Is there a way that I could store the markup (with all the tags and stuff)
 of a wicket-rendered web page into a string variable?

 I thought the getMarkupResourceStream() would work, but i don't know where
 it will be called...



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Getting-the-html-output-of-a-wicket-page-tp2994739p2994739.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