try to use a debugger like firebug and see exactly the ext-all-debug.js line where is the error,in this way maybe you can understand what's wrong.... usually is a call to a doLayout that can break something.... or other things... bye Pat
2010/2/9 Dima <[email protected]> > Our application is running fine in hosted mode, but once compiled to > javascript we get a nasty exception: > > Firefox Error: > > [FATAL] Uncaught Exception: > com.google.gwt.core.client.JavaScriptException: > (TypeError): this.proxy is undefined > fileName: http://localhost:8888/xxx.xxx/js/ext-all.js > lineNumber: 43 > stack: ([object Object])@http://localhost:8888/xxx.xxx/js/ext-all.js: > 43 > ()@http://localhost:8888/xxx.xxx/js/ext-all.js:43 > serverInfo_client_WSRWidget_ > > $getWSRWinget__LserverInfo_client_WSRWidget_2LserverInfo_client_WSR_2([object > Object],[object Object])@http://localhost:8888/xxx.xxx/ > 19D25F2B1F1B1EF737D7C6E13DDAD7AD.cache.html:36274 > > > My code: > > public Panel getWSRWinget(WSR wsr){ > > > //create the form > FormPanel formPanel = new FormPanel(); > formPanel.setLabelAlign(Position.RIGHT); > formPanel.setTitle("test"); > formPanel.setFrame(true); > formPanel.setPaddings(5, 5, 5, 0); > formPanel.setWidth(350); > formPanel.setLabelWidth(90); > > FieldSet analgeFS = new FieldSet(); > analgeFS.setTitle("test"); > > > Object[][] countries = new Object[][]{ > new Object[]{"1", "test"}, > new Object[]{"2", "test2"}, > new Object[]{"3", "test3"}, > new Object[]{"4", "test4"}, > new Object[]{"5", "test5"}, > new Object[]{"6", "test6"}, > }; > final Store countriesStore = new SimpleStore(new String[] > {"cid", "country"}, countries); > countriesStore.load(); > > final Store citiesStore = getWSR_HerstellerTyp(); // i think > that is the error > citiesStore.reload(); > // the first ComboBox with static data > final ComboBox Hersteller = new ComboBox(); > Hersteller.setFieldLabel(constants.Hersteller()); > Hersteller.setStore(countriesStore); > //Hersteller.setStore(getWSRHersteller()); > Hersteller.setDisplayField("country"); > Hersteller.setMode(ComboBox.LOCAL); > Hersteller.setTriggerAction(ComboBox.ALL); > Hersteller.setForceSelection(true); > Hersteller.setValueField("cid"); > > Hersteller.setEmptyText(wsr.getHersteller()); > Hersteller.setReadOnly(true); > Hersteller.setAllowBlank( false ); > // and the second ComboBox with dynamic data from > server > final ComboBox HerstellerTyp = new ComboBox(); > HerstellerTyp.setFieldLabel(constants.Typ()); > > HerstellerTyp.setStore(citiesStore); > HerstellerTyp.setDisplayField("wsr_bezeichnung"); > HerstellerTyp.setValueField("wsr_bezeichnung"); > > HerstellerTyp.setEmptyText(wsr.getHer_wsr_bezeichnung()); > HerstellerTyp.setMode(ComboBox.LOCAL); > HerstellerTyp.setTriggerAction(ComboBox.ALL); > HerstellerTyp.setLinked(true); > HerstellerTyp.setForceSelection(true); > HerstellerTyp.setReadOnly(true); > HerstellerTyp.setAllowBlank( false ); > > Hersteller.addListener(new ComboBoxListenerAdapter() > { > public void onSelect(ComboBox comboBox, Record > record, int index) { > HerstellerTyp.setValue(""); > citiesStore.filter("cid", > comboBox.getValue()); > > } > }); > > analgeFS.add(Hersteller); > analgeFS.add(HerstellerTyp); > formPanel.add(analgeFS); > return formPanel; > > } > > > // load data for HerstellerTyp > String[][] proxy2 ; > private Store getWSR_HerstellerTyp() { > final RecordDef recordDef = new RecordDef( > new FieldDef[] { > new StringFieldDef("cid"), > new StringFieldDef("wsr_bezeichnung") > } > ); > final Store wsrStore = new Store(recordDef); > > DataServiceAsync service = DataService.Util.getInstance(); > service.getWSR_HerstellerTyp(new AsyncCallback<String[][]>() > { > public void onFailure(Throwable caught) { > MessageBox.alert("There was an error from > the server"); > } > public void onSuccess(String[][] result) { > // or create records using the record def > and feed them to the > store > if(result.length==0){ > //no data > }else{ > proxy2 = (String[][])result; > for (int i = 0; i < proxy2.length; > i++) { > String[] rowData = proxy2[i]; > Record record = > recordDef.createRecord(rowData); > wsrStore.add(record); > } > wsrStore.commitChanges(); > > } > > } > }); > return wsrStore; > } > > > > > Any idea? > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "GWT-Ext Developer Forum" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<gwt-ext%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/gwt-ext?hl=en. > > -- You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en.
