Facelets source tags not rendered in email pdf attachment when
it is rendered by calling renderer from action method. They are rendered properly if I specify 'view' attribute instead of 'action' on link tag
public String emailAction() {
try {
renderer.render("/emailPdfAttachment.xhtml");
facesMessages.add("Email sent successfully");
}
catch (Exception ex) {
log.error(ex);
facesMessages.add("Error sending email " + ex.getMessage());
}
return null;
}
This is same problem as discussed in this thread
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=110440
I need to stay on same page and add a message saying tha email has been sent. Is there any workaround?
Thanks