File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes display html anchor tag in htmldatatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "display html anchor tag in htmldatatable" Watch "display html anchor tag in htmldatatable" New topic
Author

display html anchor tag in htmldatatable

Kunjal Shah
Greenhorn

Joined: Aug 28, 2005
Posts: 13
I am populating the HtmlDataTable dynamically through an ArrayList of String[] objects(rowData) where rowData is populated from database.

rowData[0] = { "11/10/2007", "<a href=http://www.yahoo.com>yahoo</a>", "some input text" }
rowData[1] = { "11/11/2007", "<a href=http://www.msn.com>msn</a>", "some text"}

Now I need to display the anchor tag in the Datatable column as HTML but is getting displayed as plain Text. This is the relevant portion of the code which populates the Datatable column



Normally I would place the html anchor tag within verbatim tag of my UIColumn of HtmlDataTable.. but here i am generating the datatable dynamically and am not aware how to generate the verbatim text..

Any help/suggestions ?
Kunjal Shah
Greenhorn

Joined: Aug 28, 2005
Posts: 13
Got it working...

Had to set the Escape property of HtmlOutputText to false.. this displays html inside the datatable column..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: display html anchor tag in htmldatatable