Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: combo, databinding, lazy load  (Read 4383 times)
MAXOUT
Newbie
*
Posts: 2


View Profile Email
« on: October 05, 2010, 07:00:07 »

Is it posted before?
            comboBox1.ValueMember = "baId";
            comboBox1.DisplayMember = "baName";
            comboBox1.DataSource = list;   //<--list of au
            comboBox1.DataBindings.Add("SelectedItem", au, "baAddress");
this line cause a no session exception. I think it is affected by first 2 lines. Bindings codes need to access related attributes on au instead of the one in the list. Though this access seems not necessary with the 'list' already set.

The baAddress is an attribute on au with lazy load, itself is a class.

Equals(object obj) on class of baAddress, is overrided for  binding the same obj.

Remove lazy load could be a choice. What other ideas?
« Last Edit: October 10, 2010, 05:36:25 by MAXOUT » Logged
Pages: [1]
Print