Select a NativSelection

Hi,

http://paste2.org/p/1561108

http://paste2.org/p/1561111

http://paste2.org/p/1561114

i have a table. selecting a row the form show the data. i want a nativselect in that formular which display all possible datas. it has function already. but the problem is that after selecting a row the formular dosnt show the current value in the nativselecetion.

the code relating to that issue is:


			if (newDataSource.getItemProperty("Typ").getValue() != null) {
				type.select(new RowId(new Object[] { newDataSource.getItemProperty("Typ").getValue() }));
			} else {
				type.select(type.getItemIds().iterator().next());
			}

but i do not know how to get better.

help plz