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
    4,904
    Answers
    369
    Vote Rating
    177
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi