Json is faster than XML and I would recommend loading that way. Here are some of the samples in the Showcase using both XML and Json loading...
http://gwt-ext.com/demo/#jsonGrid http://gwt-ext.com/demo/#localJsonGrid http://gwt-ext.com/demo/#localXmlGrid On Mon, Sep 8, 2008 at 2:13 AM, nformosa <[EMAIL PROTECTED]> wrote: > > Hi Mario > > Thanks for your reply. > > It makes sense what you're saying but i cant seem to load the data in > the first place. Whats the best way to load it? Via XML (ie using > XMLReader) , via JSON or? > > my xml looks something like this: > > > <?xml version="1.0" encoding="UTF-8" ?> > - <items> > - <item> > <id>1</id> > <type>test 1</type> > </item> > - <item> > <id>2</id> > <type>type 2</type> > </item> > - <item> > <id>3</id> > <type>type 3</type> > </item> > - <item> > <id>4</id> > <type>Type 4</type> > </item> > </items> > > > > Thanks > > Nick > > On Sep 8, 12:45 am, "Mario Lim" <[EMAIL PROTECTED]> wrote: >> if you have the grid already displaying, you should update the grid in >> the client once there is a successful call to your service. There is >> no need to get ALL the data back from the server into the grid. It is >> just a matter of updating the store and refreshing it... >> >> On Sun, Sep 7, 2008 at 2:52 AM, nformosa <[EMAIL PROTECTED]> wrote: >> >> > Hi All, >> >> > I know this question maybe asked one time to many but i still can't >> > get a grip on how to tackle it. I'm quite new to GWT, Gwt-Ext and the >> > whole ajax concept so please alow for this >> >> > This is situation: >> >> > I have a panel which has a grid and a Form (1 textbox, 1 submit >> > button). The idea is to save the contents of the textbox in the >> > database and reload the grid with the new data + the rest of the data. >> >> > I then have a ServiceImpl on the server part which loads/saves data >> > from by EJB bean. >> >> > So i have >> > 1. GuestTypePanel (the panel having the grid + form) >> > 2. GuestService (Interface on client) >> > 3. GuestServiceAsynch >> > 4. GuestSErviceImple which lies on the server side, extending >> > RemoteServiceServlet and implenting the GuestService Interface. >> >> > I already manage to save data, thats by calling the Asynch callback on >> > the Panel moving down to the server side and through my EJB Bean >> > saving to the db. >> >> > Now the problem is; i would like to load data onto the grid and >> > reloading or refreshing data once saved. I have another method on the >> > GuestServiceImpl class which loads the List from the EJB bean and >> > transforms it to a xml string.....but thats the extend of it. Should i >> > use Http Proxy or? if so any ideas how to implement it and call that >> > particular method to load data? >> >> > Any help would be great...as i'm completely lost! >> >> > Thanks >> >> > Nick > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
