Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

JavaBean Introspection

Avatar

Avatar
Level 1
JaM2003
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
JaM2003
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
JaM2003
Level 1

31-03-2009

I currently have a set of JAXB generated classes which I am
using as server objects in Java which I would like to pass back to
a FLEX client. To this point things have been working well but if I
have something of type collection or boolean they do not get mapped
properly. After looking at the docs I saw that FLEX uses JavaBean
introspection to determine which properties to map, but the issue I
am having is that according to the javabean spec (which JAXB
adheres to) for boolean types the method may be specified as
is<PropertyName> instead of get<PropertyName> (the
earlier FLEX does not map properly).



Additionally I had the same problem with collections that
were generated in this manner (no set Method for the collection). I
have modified the beans for now but was wondering if there was a
way to instruct flex to use the is method for boolean properties
and work with the collection format provided by JAXB?