-1

Store にサーブレットの post メソッドを呼び出させようとしていますが、actionMethods を post に設定しても get を呼び出し続けます

Ext.define("Shows.store.Shows", {
extend: "Ext.data.JsonStore",
requires: "Ext.data.proxy.LocalStorage",
config: {
    model: "Shows.model.Show",
    proxy: {
        type: 'scripttag',
        actionMethods: {
            create : 'POST',
            read   : 'POST', // by default GET
            update : 'POST',
            destroy: 'POST'
        },
        url: 'http://localhost:8080/GetShowsServlet',
        reader: {
         type: 'json',
         successProperty: 'success'
     },
    }
}

});

4

1 に答える 1