Re: create email with wicket/javamail
Hello, I looked into the source code, but I do not find some line that helped me. I was using the online SVN view. But I think checkout the source will be much better... jwcarman wrote: I would maybe take a look at WicketTester. It does what you're looking for (renders to a String) I believe. On Thu, Mar 27, 2008 at 4:43 AM, greeklinux [EMAIL PROTECTED] wrote: I found the method Component.render(MarkupStream markupStream). I am thinking about to create this page and then render it, save the stream, and set it as email body... Or is there a more elegant and better wicket-way to achieve this? greeklinux wrote: Hello, I would like to create an email body with wicket and send it with javamail. I read that it is possible to create a page and get it from a buffer. I do not want to use other template languages like velocity. I think wicket schould be enough. I read about StringRequestTarget and the RequestCycle.setRequestTarget but I do not know how to use them. I new to wicket. If someone can give me a hint it would be great. -- View this message in context: http://www.nabble.com/create-email-with-wicket-javamail-tp16289600p16323360.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/create-email-with-wicket-javamail-tp16289600p16369989.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: create email with wicket/javamail
You can do WicketTester.getServletResponse().getDocument() to get the rendered HTML. On Sat, Mar 29, 2008 at 9:27 AM, greeklinux [EMAIL PROTECTED] wrote: Hello, I looked into the source code, but I do not find some line that helped me. I was using the online SVN view. But I think checkout the source will be much better... jwcarman wrote: I would maybe take a look at WicketTester. It does what you're looking for (renders to a String) I believe. On Thu, Mar 27, 2008 at 4:43 AM, greeklinux [EMAIL PROTECTED] wrote: I found the method Component.render(MarkupStream markupStream). I am thinking about to create this page and then render it, save the stream, and set it as email body... Or is there a more elegant and better wicket-way to achieve this? greeklinux wrote: Hello, I would like to create an email body with wicket and send it with javamail. I read that it is possible to create a page and get it from a buffer. I do not want to use other template languages like velocity. I think wicket schould be enough. I read about StringRequestTarget and the RequestCycle.setRequestTarget but I do not know how to use them. I new to wicket. If someone can give me a hint it would be great. -- View this message in context: http://www.nabble.com/create-email-with-wicket-javamail-tp16289600p16323360.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/create-email-with-wicket-javamail-tp16289600p16369989.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: create email with wicket/javamail
I found the method Component.render(MarkupStream markupStream). I am thinking about to create this page and then render it, save the stream, and set it as email body... Or is there a more elegant and better wicket-way to achieve this? greeklinux wrote: Hello, I would like to create an email body with wicket and send it with javamail. I read that it is possible to create a page and get it from a buffer. I do not want to use other template languages like velocity. I think wicket schould be enough. I read about StringRequestTarget and the RequestCycle.setRequestTarget but I do not know how to use them. I new to wicket. If someone can give me a hint it would be great. -- View this message in context: http://www.nabble.com/create-email-with-wicket-javamail-tp16289600p16323360.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: create email with wicket/javamail
I would maybe take a look at WicketTester. It does what you're looking for (renders to a String) I believe. On Thu, Mar 27, 2008 at 4:43 AM, greeklinux [EMAIL PROTECTED] wrote: I found the method Component.render(MarkupStream markupStream). I am thinking about to create this page and then render it, save the stream, and set it as email body... Or is there a more elegant and better wicket-way to achieve this? greeklinux wrote: Hello, I would like to create an email body with wicket and send it with javamail. I read that it is possible to create a page and get it from a buffer. I do not want to use other template languages like velocity. I think wicket schould be enough. I read about StringRequestTarget and the RequestCycle.setRequestTarget but I do not know how to use them. I new to wicket. If someone can give me a hint it would be great. -- View this message in context: http://www.nabble.com/create-email-with-wicket-javamail-tp16289600p16323360.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
create email with wicket/javamail
Hello, I would like to create an email body with wicket and send it with javamail. I read that it is possible to create a page and get it from a buffer. I do not want to use other template languages like velocity. I think wicket schould be enough. I read about StringRequestTarget and the RequestCycle.setRequestTarget but I do not know how to use them. I new to wicket. If someone can give me a hint it would be great. -- View this message in context: http://www.nabble.com/create-email-with-wicket-javamail-tp16289600p16289600.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]