I am trying to capture dynamic generated html content on server side on command button's action call, but not able to get the exact dynamic content.
Let's say, i have one page which displays items in data table with check boxes (grid) and when i select some checkbox and click on some command button (preview), it takes me to the next view where all informations of this selected items shows in panels as preview, then i have one button (command button) on preview page on whose click complete preview page should be send as an email (html email) as an action call.
So on this action call, i want to capture this preview page html content, so that i can send this as an email.
You are better off doing a separate HTML format to produce the email body text. If you prefer to use a template to generate that HTML, there are a number of template engines that can do the job. A current project of mine uses the Apache Velocity engine for that purpose.
An IDE is no substitute for an Intelligent Developer.
I don't know what you are doing, but if you are getting "xhtml" back, you are not running the request through JSF. JSF only uses the xhtml (View Definition Language) resources as templates for the FacesSerlet to process and render as the output HTML.
content what i am getting on server side is same that i can see on right click and view source of the page.
but problem now i am getting is, when attaching this content to mail's body and sending it, it is not getting rendered on MS Outlook as html, but simpy coming as raw html text, i.e. <html> <body> ...
Please suggest how i can send this content as a mail so that i can be rendered as html page on Outlook.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Capturing dynamic generated HTML Content on action call