PDA

View Full Version : DualListField has "extra" textArea. How to remove?



br00ks
15 Jul 2010, 6:48 PM
Hey there! I'm trying to catch up with gwt and Ext Gwt. I need to add DualListField on my form. After I did that I found that there is one more component which I didn't add. I moved that staff to a separate panel to check if it will appear again - result was the same. I copied all example from com.extjs.gxt.samples.client.examples.dnd.DualListFieldExample (http://www.sencha.com/examples/explorer.html#duallistfield ) and have this screen:
http://img6.imageshack.us/i/weirdvy.jpg/ - just example.
http://img514.imageshack.us/i/networks.jpg/ - in my form after get inserted networks from db, same "extra" text area which always show null whatever you select. I tried to find where did it come from, but could. That's why I even registered on this forum because I want to find what is this :). Thanks.

If you still need a code for the DualListField part, as I said it is exactly like example:
//...

networkModelList I already get from rpc service. And as you can see on screen it displayed.

networkLists.setFieldLabel("Available Networks");

ListField<NetworkModel> from = networkLists.getFromList();
from.setDisplayField("networkNm");
ListStore<NetworkModel> store = new ListStore<NetworkModel>();
store.setStoreSorter(new StoreSorter<NetworkModel>());
store.add(networkModelList);
from.setStore(store);
ListField<NetworkModel> to = networkLists.getToList();
to.setDisplayField("networkNm");
store = new ListStore<NetworkModel>();
store.setStoreSorter(new StoreSorter<NetworkModel>());
to.setStore(store);

simple.add(networkLists, new FormData("100%"));

Thanks.

sven
21 Jul 2010, 1:44 AM
Are you sure that you use the latest css and latest gxt version? This should not appear