Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Some possible issues with smartgwt mobile

    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

    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()
    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

    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 .

    #2
    I confirm that your 2 issues are still present in SGWT mobile as of today.
    Do you have a workaround for the validation errors?

    Comment


      #3
      Can you fulfill the information the forums asks for: indicate your exact version, show the complete server log for the request, and show how this problem can be reproduced.

      Comment


        #4
        Here are the versions.
        BTW, the only place I could find SGWT mobile's version was in a class, not so handy, why not using maven naming convention for jar file or use the standard META-INF?

        SGWT mobile version: 1.0 06/05/2012 09:30 -0700
        SGWT 3.0p
        GWT 2.4
        Any browser


        I already posted the stack below and identified the culprit line of code.

        http://forums.smartclient.com/showthread.php?t=22510

        Comment

        Working...
        X