Displaytag is working fine for me.I wanted to whether while exporting the table to csv,excel,xml
how can I omit the anchor tags and display only column value.
ie.,<a href="details.jsp">TEST</a>
I want to import only TEST omiiting the anchor how to do that.
Thanks
javauser
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am facing the same problem , if i define two columns with different meadia attibutes then i will get two columns while displaying the page? please let me know more clearly
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
Displaytag is working fine for me.I wanted to whether while exporting the table to csv,excel,xml
how can I omit the anchor tags and display only column value.
ie.,<a href="details.jsp">TEST</a>
I want to import only TEST omiiting the anchor how to do that.
Thanks
javauser
Define two columns with different media attributes.
I am facing the same problem , if i define two columns with different meadia attibutes then i will get two columns while displaying the page? please let me know more clearly
One way is to use a custom columndecorator and in that decorator handle link formatting and different media types. For example:
(LinkObject is a class with two properties, text and url.)
if (column instanceof LinkObject) {
LinkObject link = (LinkObject) column;
if (media.equals(MediaTypeEnum.HTML)) {
return "<a href=\"" + link.getUrl() + "\">" + link.getText() + "</a>";
} else {
return link.getText();
}
}
if (column instanceof otherType......