make a normal servlet (myLoadingServlet) ....make the doPost that get a file
and returns a string.....and set the url to call the servlet for example
setUrl("myLoadingServlet?myFile.json")
i have used already it and functions .... i'm not at work until next monday
otherwise
i'll give you my code ....but it's very easy :)...
remember that gwt servlet are the NORMAL servlet we are used to but
with some little changes that you con override...
bye Pat

2009/8/25 Anton Trapp <[email protected]>

>
> Hi Patrizio!
>
> Thank you, but that is exactly what I already used several times. What I
> need is not a
>
> loader.setDataUrl("data/column-data.json"); -> load from URL
>
> but a loader.loadFromClientString(jsonStringOnClient); -> load without
> going to the client.
>
> Mayby I did not make myself clear...
>
> Regards, Anton
>
> Patrizio De Michele schrieb:
> > http://www.gwt-ext.com/demo/#columnTree
> > here loads from a url the json :)
> > 2009/8/23 Anton Trapp <[email protected]
> > <mailto:[email protected]>>
> >
> >
> >     I must be blind. I can find many which read from the server a json
> >     string, many xml samples, but not one with a local client json.
> >     Can you
> >     lend me your glasses?
> >
> >     Patrizio De Michele schrieb:
> >     > see the gwt-ext showcase if i remenber correctly there are many
> >     > examples of this type....
> >     > bye pat
> >     >
> >     > 2009/8/23 Anton Trapp <[email protected]
> >     <mailto:[email protected]>
> >     > <mailto:[email protected]
> >     <mailto:[email protected]>>>
> >     >
> >     >
> >     >     Hello again!
> >     >
> >     >     Is it possible to build a tree from a local json String on
> >     the client?
> >     >
> >     >     myJsonString would be something like ->
> >     [{"id":"root","text":"root
> >     >
> >
> node","leaf":false,"children":["id":"one","text":"child1","leaf":true]]
> >     >
> >     >     and it is allready on the client.
> >     >
> >     >     I would have thought of something like:
> >     >
> >     >     JsonReader reader = new JsonReader();
> >     >     Store store = new Store(reader);
> >     >     store.loadJsonData(myJsonString, true);
> >     >
> >     >     but what do I use for the JsonReader constructor (or is my
> >     throught
> >     >     going in the wrong direction)?
> >     >
> >     >     Thank you very much in advance!
> >     >
> >     >     Regards,
> >     >
> >     >     Anton
> >     >
> >     >
> >     >
> >     >
> >     > >
> >
> >
> >
> >
> > >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to