Eclipse + GWT Plugin, Smart GWT 2.0, Google Chrome 4.0.288.1 dev (and previous).
ListGrid.setData() works ok in debug mode with Chrome GWT plugin (categories is visible).
But after compile with GWT Eclipse plugin application in Chrome show only first empty row. Other browser work correctly (IE 7, Last Firefox, Opera 10).
Code:
ListGrid catsGrid = new ListGrid(); catsGrid.setEmptyMessage("Load..."); catsGrid.setWidth("30%"); ListGridField nameField = new ListGridField("name", "Category"); catsGrid.setFields(new ListGridField[] {nameField}); String result="{\"error\": null, \"id\": 1, \"result\": [{\"name\": \"\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e\u0442\"}, {\"name\": \"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043e\u0446\u0435\u043d\u043e\u043a\"}]}"; JSONValue value = JSONParser.parse(result).isObject().get("result"); JSONArray catsAry = value.isArray(); JavaScriptObject jsObj = catsAry.getJavaScriptObject(); Record[] recs = Record.convertToRecordArray(jsObj); catsGrid.setData(recs); catsGrid.draw();
But after compile with GWT Eclipse plugin application in Chrome show only first empty row. Other browser work correctly (IE 7, Last Firefox, Opera 10).
Comment