Results 1 to 2 of 2

Thread: how do java get the value of ajax proxy submit

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    1
    Vote Rating
    0
      0  

    Default how do java get the value of ajax proxy submit

    i have define a model,
    Code:
    Ext.define('cn.ffcs.system.org.model.Org', {
        extend: 'Ext.data.Model',
        fields: [
            {name: 'id'},
            {name: 'parentId'},
            {name: 'name'},
            {name: 'code'},
            {name: 'descript'}
        ],
        proxy: {
            type: 'ajax',
            headers: {'Content-Type': "application/x-www-form-urlencoded; charset=UTF-8" },
            api: {
                create: 'org.shtml?method=save',
                update: 'org.shtml?method=save',
                destroy: 'org.shtml?method=delete'
            },
            reader: {
                type: 'json',
                root: 'orgs'
            }
        }
    });
    when i submit the update,
    Code:
    ...
    form.updateRecord(record);
    record.save();
    in the servlet,request.getParameter() return null,and in the firebug,i can see the value is not null.

    cheers.

  2. #2
    Sencha - Documentation Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,162
    Answers
    501
    Vote Rating
    257
      0  

    Default

    Just to clarify, are you asking an ExtJS question or a server-side scripting question regarding the handling of form data sent from the client?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •