Ah, OK. I don't think it is currently possible to define an enum instance in BXML like that. However, you could define an EnumList<Sex> in code (either outside the serializer or in script) and set it like this:
EnumList sexList = new EnumList(Sex.class); ... <ListButton listData="$sexList"/> On Apr 4, 2011, at 5:15 PM, sam wrote: > Sorry. For some reason the XML kind of content creates issues the people > can't see. Let me try again. > <ListButton bxml:id="sex" selectedItemKey="sex"> > <listData> > <myLib:Sex.Male/> > <myLib:Sex.Female/> > </listData> > </ListButton> > > View this message in context: Re: enum values in BXML > Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
