Home > Ext JS > ExtJS 4 proxy & DWR

ExtJS 4 proxy & DWR

hi guys!

finally we have ExtJS 4 DWR proxy.

the usage is simple!

Ext.define('App.store.SampleStore', {
    extend: 'Ext.data.Store',
    proxy: {
        type: 'dwr',
        //assume that we have dwr function getTestGrid(storeParameters a,Integer b,Integer c)
        //first one goes automatically it includes start,limit,page and other store parameters
        //second and third are optional we pass them through dwrParams as an array
        reader: {
            root: 'data',



any questions?
ask :P
  1. serch
    February 3, 2012 at 02:32

    where are the model for store

    • March 7, 2012 at 13:51

      the model is not needed if you are using DWR. because you get live objects and not a string that is needed to be transformed into an object. You just need to indicate fields for the store.

  2. ClearMind
    February 14, 2012 at 03:57

    I am trying to use this proxy and it is not loading the data in the grid?

    • March 7, 2012 at 15:15

      could you show me the example how you use the proxy? and what does the dwr method return?

  3. And1
    February 23, 2012 at 22:18

    nice job

  4. Joe
    March 7, 2012 at 12:43

    Had u got an Example to use it? THX

  5. March 13, 2012 at 21:31

    Thanks a lot!

  6. December 24, 2012 at 13:06


    How to get the data returned from java method?

    My code works but i can’t get the data, Store.getCount() is zero

    • December 24, 2012 at 14:41

      you just need to return and object like

      can you show me your dwr method?

      • December 25, 2012 at 08:21

        My Java Method

        public List EmployeeId( //parameters){

        return empDAO.executeQuery(‘query’); // Executes a query like ‘select empid from emp’


        this returns a resultset

      • December 26, 2012 at 12:51

        well actually i’m interested in a class you are returning it should look like i described in previous comment.
        try this class

        class asd {
        private int totalCount;
        private List data;



        put your list into data and count into totalCount and return this one.

  1. March 18, 2013 at 06:55

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: