1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    1
    Vote Rating
    0
    mengyang is on a distinguished road

      0  

    Default Unanswered: how do java get the value of ajax proxy submit

    Unanswered: 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 - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,115
    Answers
    402
    Vote Rating
    186
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      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?

Thread Participants: 1

Tags for this Thread