Hello
all,
I am a newbie with
TableDecorator and I want to be able to change a row's class based on a value
within the row.
I have overrided
TableDecorator and have set the decorator to this attribute (see below).
I get the following error
for about anything I try...
Generated servlet
error:
The method evaluate(String) is undefined for the type <anonymous subclass of TableDecorator>
The method evaluate(String) is undefined for the type <anonymous subclass of TableDecorator>
<jsp:scriptlet>
request.setAttribute("statusDecorator", new org.displaytag.decorator.TableDecorator() {
public String addRowClass() {
request.setAttribute("statusDecorator", new org.displaytag.decorator.TableDecorator() {
public String addRowClass() {
return
((com.aiinc.model.Data)getCurrentRowObject()).getStatus().isActive() ?
"activeStatus" : "inactiveStatus";
}
public String addRowId() {
return "row" + evaluate("id");
}
});
</jsp:scriptlet>
}
public String addRowId() {
return "row" + evaluate("id");
}
});
</jsp:scriptlet>
Any ideas, any help,
much appreciated!