Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3522842
By: safetykap
I ran into a very similar problem and here is the solution I stumbled upon:
If the name of the structure you store your data in is named "incorrectly" the
decorator will fail with the error message you saw.
--- Example ---
Will Fail:
public String getFoo() {
BODData bd = (BODData) this.getCurrentRowObject();
...
return results;
}
Will Work:
public String getFoo() {
BoData bd = (BoData) this.getCurrentRowObject();
...
return results;
}
--- End Example ---
Note that the only change was to rename "BODData" to "BoData".
It also appears that if the decorator is "incorrectly named" the getter cannot
be found. In the example below, the field called "foo", normally mapped to
"getFoo()"
will not be found, as it will look for "getfoo()" -- violating the spec. I
believe this error is due to BeanUtils, but don't have time to track it down.
--- Example ---
Will Fail:
public class DecoratorBODList extends TableDecorator {
public String getFoo() {
...
}
...
}
Will Work:
public class DecoratorBoList extends TableDecorator {
public String getFoo() {
...
}
...
}
--- End Example ---
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=249318
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user