hi all,

i am trying to get the names of my custom class into a list. I followed the
great examples and documentation, but still this error remains:

uncaught exception: No event could be found for the property: source

I thought my mistake is in my class definition because of this event
message, but i couldn't check it with the example, because there is no code
for the custom class available... and i couldn't understand what that
message exactly means...

So maybe you could help me... here is some of my code:

first of all the class:

qx.Class.define("test.Map", 
{
  extend: qx.core.Object,
  construct : function() 
  { 
  },
  properties:{
       source :
    {
      check : "String",
      init : null,
      nullable : true,
      apply : "setSource",
      event: "sourcechanged",
      themeable : true
    }
  },
  members: 
  {
  setSource : function(value) {
      this.source=value;
    }
  },
   events :
  {
    "sourcechanged": "qx.event.type.Event"
  }
});

and here the list:

var Map1 = new test.Map();
Map1.setSource("Map 1");
              
var Map2 = new test.Map();
Map2.setSource("Map2");
var maps =[Map1, Map2];

var armaps = new qx.data.Array(maps);
var lstexmaps = new qx.ui.form.List();
var control = new qx.data.controller.List(armaps, lstexmaps,"source");

-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/custom-objects-in-controller-list-tp5618349p5618349.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to