Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Cannot fetch Java bean with Boolean

    I have ds.xml-defined datasource backed by a Java bean that has a Boolean (note that it's upper-case) field named "passed". When I do a fetch, I get this error, "couldn't get value at XPath: no read method". I'm thinking that it's because the bean has a method called isPassed() but JXPath it's looking for getPassed. I have other datasources with lower-case boolean fields and they work fine. Is there any way around this if the Java bean methods can't be changed?

    SmartGWT 2.5p on FF

    #2
    Are you able to leave isPassed() in place and add an additional getPassed() signature? That's the easiest thing, and will allow you to work with other software that also expects the Java Beans naming convention.

    Comment

    Working...
    X