Hi All,

Background info:  Coldfusion and Flex.

I have a a TileList that is being populate by an Array of CategoryVO's. 

<mx:TileList
    xmlns:mx="http://www.adobe.com/2006/mxml"
    dataProvider="{model.templateList}"
    width="100%"
    itemRenderer="Thumbnail"
    columnWidth="200"
    height="100%"
    dragEnabled = "false"
    backgroundColor="#C0CCD2"
    creationComplete="InitEvent()"
    >

The Thumbnail ItemRenderer has problems with data binding .

-----ThumbNail.mxml --------------

        <mx:Label text="{ data.data.ID}. {data.name}" textAlign="left" fontWeight="bold"/>
        <mx:Image
            id="image" x="{image.width/2}" y="{image.height/2}"
            horizontalAlign="center"
            source="http://company.test.net{data.data.URL as String}"
            click="thumbClicked()"
             scaleX=".7" scaleY=".7"
             rollOverEffect="zoomIn"
             rollOutEffect="zoomOut"/>

-------- Error message from the Debugger -------------------------

warning: unconverted Bindable metadata in class 'com.mycompany.templateEditor.vo::CategoryVO'

--------  CategoryVO -----------------------------------------------------------

package com.smartetailing.templateEditor.vo {
 
 import org.nevis.cairngorm.vo.ValueObject;
 
 [Bindable]
 [RemoteClass(alias="com.smartetailing.templateEditor.model.CategoryVO")]
 
 [Bindable]
 public dynamic class CategoryVO {
  
  public var name:String;
  public var data:Number;

  public function CategoryVO() {
   
   name = "";
   data = "">

  }
  
 }

}
----------------------------------------------------------------------------

 

Note:  According to the Flex2 documentation, once the CategoryVO is made bindable, all of its properties are also bindable.  However, this doesn't seem to be the case when the itemrenderer tries to use CategoryVO.

Is this a bug in the flex or am I missing something.

Any help on this is greatly appreciated.

Cheers,

Tim



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to