| Author |
parsing html in dataTable
|
Ayub ali khan
Ranch Hand
Joined: Oct 20, 2005
Posts: 378
|
|
Hi, I have a requirement where the actual column data in HTMLDataTable should be parsed as html page. for example the contents of HTML column are <html> <body> Hello </body> </html> then the column should be displayed as Hello. If there are any style attributes, these should also be applied. Can any one give some tips on this ? Thanks and Regards Ayub
|
SCEA part I,TOGAF Foundation
|
 |
Leonardo Rafaeli
Ranch Hand
Joined: Dec 12, 2005
Posts: 58
|
|
there are a lot of ways, like: - you can add a verbatim tag inside your column tag - using t:htmlTag of tomahawk - using facelets (just put the html code inside your column tag) - again, using tomahawk, there are some html-jsf tags, like t:document (it renders a html tag) and t:documentBody (a body html tag) - etc
|
SCJP 1.4, SCWCD 1.4, SCBCD 5, OCUP, SCEA 5 (I), Oracle SOA Implementation Specialist, IBM Websphere Lombardi 7.1 Fundamentals
Blog: [url]http://www.leozin.com.br/blog[/url]
|
 |
Krishna Srinivasan
Ranch Hand
Joined: Jul 28, 2003
Posts: 1803
|
|
You can use verbatim tag to include the html or plain text. http://www.javabeat.net/code/2007/09/jsf-iterate-row-using-datatable/
|
Krishna Srinivasan
OCAJP Mock Questions
|
 |
Ayub ali khan
Ranch Hand
Joined: Oct 20, 2005
Posts: 378
|
|
Thank you very much for the advice. We were generating the JSF pages at runtime and also the table was built at runtime using java classes. I used .isEscape method of UIComponentBuilder class. Thank you very much for giving the clues. Regards Ayub
|
 |
 |
|
|
subject: parsing html in dataTable
|
|
|