2010-11-04 34 views
0

运行我在调试模式下的应用程序时,我有这个错误, 我在Java类isRoot财产与setRoot setter和isRoot方法,的Flex/BlazeDS的错误丢失财产

在弹性侧我已经isRoot公众没有getter和setter ....可能的问题只是约定名称兼容性

回答

1

flex属性名称必须是root而不是isRoot

BlazeDS正在使用Java Beans naming convention。欲了解更多信息,请阅读BlazeDS Developer Guide/Serializing between ActionScript and Java

BlazeDS uses the standard Java class, java.beans.Introspector, to get property descriptors for a Java bean class. It also uses reflection to gather public fields on a class. It uses bean properties in preference to fields. The Java and ActionScript property names should match.

+0

那解决了这个问题,谢谢 – seismael 2010-11-04 09:28:59