load tag - class attribute cannot be set
Brought to you by:
sergek
When I used the load tag, I get the following error:
"Unable to find setter method for attribute: class"
The problem is because the java.beans.Introspector
does not recognize the class property on LoadTag as a
writable property. Believe this is because
LoadTag.setClass(String) conflicts with Object.getClass
() and the Introspector picks the Object method and
makes class a read-only property.
Attached source file shows how java.beans.Introspector
ignores the setClass method.
Best solution is to rename the class property on the load
tag to something like objectClass that does not conflict.
shows how Introspector ignores setClass