-
1. Re: Renderer in seam 3 or CDI ???
lightguard Jan 29, 2013 1:05 AM (in response to rahul22)The tests should include some examples. Unfortunately, that's all we have.
-
2. Re: Renderer in seam 3 or CDI ???
rahul22 Jan 29, 2013 1:15 AM (in response to lightguard)hi ,
Thanks for quick reply , can you provide links for those examples .
THanks !!!
-
3. Re: Renderer in seam 3 or CDI ???
lightguard Jan 29, 2013 1:34 AM (in response to rahul22)1 of 1 people found this helpful -
4. Re: Renderer in seam 3 or CDI ???
rahul22 Jan 29, 2013 1:39 AM (in response to lightguard)hi,
so to achieve this :-
public void send() {
try {
Renderer renderer = Renderer.instance();
renderer.render("/abc/xyz.xhtml");
log.info(EmailComponent.class,"Email sent successfully");
} catch (Exception e) {
log.error(EmailComponent.class,"Error sending mail", e);
}
}
i have to use seam mail module with velocity , now ???
-
5. Re: Renderer in seam 3 or CDI ???
lightguard Jan 29, 2013 1:51 AM (in response to rahul22)If you want to go to Seam 3, yeah. If you'd like to stick to Seam 2, there's Seam 2.3 which was released last year which works on EAP 6 and AS7.
-
6. Re: Renderer in seam 3 or CDI ???
rahul22 Jan 29, 2013 2:28 AM (in response to lightguard)THanks A LOT !!
-
7. Re: Renderer in seam 3 or CDI ???
rahul22 Jan 29, 2013 3:23 AM (in response to lightguard)hi,
can you please look into https://community.jboss.org/thread/220597 .
it will mean a lot if you can guide me somewhere .
Thanks .
-
8. Re: Renderer in seam 3 or CDI ???
rahul22 Jan 29, 2013 8:06 AM (in response to rahul22)hi ,
http://www.seamframework.org/Documentation i cant find any documentation .. regarding templates .
how i can integrate now ???
can you tell me any other source or when the documentation will get updated ??????
Thanks
-
9. Re: Renderer in seam 3 or CDI ???
lightguard Jan 29, 2013 11:48 AM (in response to rahul22)Are you talking about Seam 2.3 now or still Seam 3?
-
10. Re: Renderer in seam 3 or CDI ???
rahul22 Jan 29, 2013 11:56 AM (in response to lightguard)Its still seam 3. my main goal is to render a page say xhtml page. After sending the email successfully.
renderer in seam 2 i can use directly for that purpose,,, but i want that in seam 3 ..
Check the code snippet i have. given regarding renderer in seam 2 there m doing render of xhtml page after email sent. successfully .
Thanks .
-
11. Re: Renderer in seam 3 or CDI ???
lightguard Jan 29, 2013 12:05 PM (in response to rahul22)You could do all of the rendering of the template in an action method and just return the viewId for navigation. As far as Rendering XHTML for the email, that was never really solved due to some issue with JSF and environments.
-
12. Re: Renderer in seam 3 or CDI ???
rahul22 Jan 29, 2013 11:51 PM (in response to lightguard)so in seam 3 something similar to seam 2 Renderer can't be achieved ?????
-
13. Re: Renderer in seam 3 or CDI ???
lightguard Jan 30, 2013 12:22 AM (in response to rahul22)Not unless you want to extend Seam Mail and Seam Reports to include those rendering options. Unfortunately when we created Seam 3 we never said it was a drop-in replacement for Seam 2. Hindsight, ya know?