Using smartgwt mobile version - 0.9n
If is dont pass startRow and endRow then getting a numberformat exception on the server side when using the datasource fetchdata it works fine when using the tableview fetchdata so i need to something like this to make it work
When there is a required field and call saveData on the dynamicform. The errors returned from the server is throwing a class cast exception in the below line of DSResponse constructor in the client. Server returns RecordList and client throws error
java.lang.ClassCastException: com.smartgwt.mobile.client.data.RecordList cannot be cast to java.util.Map
There is one more issue not related to code but to the UI. if i have a textitem and a button. Normally when i click on the button the textbox loses the focus. This works fine when everything fits into the screen with no scroll. When i have a scrollablepanel and if i have a table also whose data is more than the screen size then the textitem does not lose focus when i click on a button. The button clickevent etc works fine but the focus remains on the text box. You can test this by re-sizing the browser .
If is dont pass startRow and endRow then getting a numberformat exception on the server side when using the datasource fetchdata it works fine when using the tableview fetchdata so i need to something like this to make it work
Code:
HashMap<String, Object> req = new HashMap<String, Object>(); req.put("startRow", 0); req.put("endRow", 0); req.put("sortBy", new String[] {"commentsId"}); d.setRequestProperties(req); d.fetchData()
java.lang.ClassCastException: com.smartgwt.mobile.client.data.RecordList cannot be cast to java.util.Map
Code:
setErrors((Map)response.get("errors"));
There is one more issue not related to code but to the UI. if i have a textitem and a button. Normally when i click on the button the textbox loses the focus. This works fine when everything fits into the screen with no scroll. When i have a scrollablepanel and if i have a table also whose data is more than the screen size then the textitem does not lose focus when i click on a button. The button clickevent etc works fine but the focus remains on the text box. You can test this by re-sizing the browser .
Comment