Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    11
    Vote Rating
    0
    eetayo is on a distinguished road

      0  

    Default Unanswered: Send extraParams from Store

    Unanswered: Send extraParams from Store


    I need to send a variable (plataformatechnosite.Utils.usuario) as extraParams and not working. Send an empty string to the server

    I use that variable in many other places and it works.

    My Code:

    Code:
    Ext.define('plataformatechnosite.store.Feeds', {
        extend: 'Ext.data.Store',
        config: {
            model: 'plataformatechnosite.model.Feed',
            storeId: 'feedsStore',
            proxy: {
                type: 'jsonp',
                url:'http://localhost:8080/proxySimplext/webresources/listadoMedios/recuperar',
                callbackKey: 'callback',
                extraParams:{
                    usuario: plataformatechnosite.Utils.usuario
                },
                reader: {
                    type: 'json',
                    rootProperty: 'listaMedios'
                },
                callback: function(data) { 
                    console.log("callback" + data);
                },
                afterRequest: function(req, res) {
                    console.log("Ahoy!", req.operation.response);    
                }
            },
            timeout: 3000
        }
    });
    ideas??

  2. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    30
    Answers
    3
    Vote Rating
    0
    Isnogud is on a distinguished road

      0  

    Default


    Sending an empty string or is usuario undefined?

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    11
    Vote Rating
    0
    eetayo is on a distinguished road

      0  

    Default


    empty string.

    In my java web service:

    Code:
      public JSONWithPadding recuperarListaMedios( @QueryParam("usuario") String usuario, @QueryParam("callback") String callback) {
    
    
            System.out.println(" value:" + usuario);

    result empty string--> value:

Thread Participants: 1

Tags for this Thread