This isn't really an XFire question but I know Dan has done some work
with xbean-spring and may know how to get this working.

I am trying to set a map property on a bean using xbean-2.6 and all I
seem to get back is an empty map.

The bean config file is similar to as shown below.


<beans:beans
  xmlns="http://ns.com/app/1.0";
  xmlns:beans="http://www.springframework.org/schema/beans";
  xmlns:util="http://www.springframework.org/schema/util";
>
  <MyObject>
    <mapProperty>
      <util:map>
         <entry key="sideBar" value="hello" />
      </util:map>
    </mapProperty>
  </MyObject>
</beans:beans>


If I add a log statement to MyObject.setMapProperty it is called but the
value is {}. also when I then get the values later it is also the empty
collection (I was wondering if the map was set first and then populated
later).


class MyObject {
  public void setMapProperty(Map values) {
    log.debug(values);
    this.mapProperty = values;
  }
}


Any ideas? Have I got the syntax right?

Paul



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to