开发者

Flex/BlazeDS Error missing property

I have this error when run开发者_开发问答ning my application on debug mode :

ReferenceError: Error #1056: Cannot create property root on MyClass.

The problem is that MyClass doesn't contain any root property and i don't know how it get it, I have isRoot property at the Java Class with setRoot setter and isRoot methods,

at the flex side i have isRoot as public without getter and setter.... could the problem be just convention names compatibility


The flex property name must be root instead of isRoot.

BlazeDS is using the Java Beans naming convention. For more informations read the 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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜