This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Not directly. The simplest way would be to simply iterate the data model and write out the data as plain text lines (I'm not a fan of HTML email). However, you could also build a JSF page that produces HTML form - including the datatable tag, and have your action processor do an internal HTTP request for that page, which you would then encapsulate in the email message you're building. There's a fair amount of overhead involved there, including the fact that you'd probably need to propagate your session to the internal request. However, it's relatively immune to breakage.
If you're sufficiently devious, you could probably gain some speed by short-circuiting the internal HTTP request, but that would put you more at risk when the framework changes. Also, it would limit some of your load-balancing options, but that's only an issue for really heavy load systems.
An IDE is no substitute for an Intelligent Developer.
Joined: Mar 17, 2008
HI thanks for your kind information. Is there is any other API or third party vendors who has the easy way of sendinf email with the datatable in it??? Because it has to be done immediatly....