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

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