I had remnants of DisplayTag 1.0. When I removed that, all
worked. Thanks!
Did you get this working? I don't see why the code shouldn't work since
evaluate is protected. Would this work?...
public String
addRowId() { return "row" + ((com.aiinc.model.Data)getCurrentRowObject()).getId();
}
(no displaytag expert) Chris
On Mar 3, 2006, at 12:31 PM, Kerri Korschgen wrote:
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>
<jsp:scriptlet> 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>
Any ideas, any help,
much appreciated!
|