Re: S2 - Deserializing with the JSON plugin

2007-06-28 Thread Musachy Barroso
Oh, I see, but I don' think it is worth it, the good news is, this is already done on 2.1 (tree lazy loading using AJAX), so check it out ;) musachy On 6/28/07, Max Pimm <[EMAIL PROTECTED]> wrote: Hmmmn. What you've implemented deserializes the whole of the request into one of the actions vari

Re: S2 - Deserializing with the JSON plugin

2007-06-28 Thread Max Pimm
Hmmmn. What you've implemented deserializes the whole of the request into one of the actions variables. This is handy but was not actually what i was after, let me explain more. I'm trying to use the dojo tree widget with lazy loading. For the moment my idea is to get it going outside struts a

Re: S2 - Deserializing with the JSON plugin

2007-06-28 Thread Musachy Barroso
You can pass the content type as a parameter to dojo.bind (actually, it is a field inside the object passed as the parameter) musachy On 6/28/07, Max Pimm <[EMAIL PROTECTED]> wrote: Thanks. Unfortunately i'm having trouble integrating it since the dojo call that i am using does not set the con

Re: S2 - Deserializing with the JSON plugin

2007-06-28 Thread Max Pimm
Thanks. Unfortunately i'm having trouble integrating it since the dojo call that i am using does not set the content-type header. I've not got debugging to work yet with dojo but once i do i'll have a look at whats going on. The problem is not with the inteceptor anyway. max Musachy Barroso w

Re: S2 - Deserializing with the JSON plugin

2007-06-27 Thread Musachy Barroso
Ok, it is done (I was bored today :) ). Make sure that the object returned from the value stack, from the "root" expression is not null. regards musachy On 6/27/07, Max Pimm <[EMAIL PROTECTED]> wrote: Thanks a million. At the moment i'm not using the interceptor but am deserializing my variabl

Re: S2 - Deserializing with the JSON plugin

2007-06-27 Thread Max Pimm
Thanks a million. At the moment i'm not using the interceptor but am deserializing my variable to a Map using your JSONUtil.deserialize and then populating my variable inside my action class (i've copied your JSONInterceptor.populateObject method). I look forward to doing this in a cleaner way

Re: S2 - Deserializing with the JSON plugin

2007-06-27 Thread Musachy Barroso
Nope, the interceptor doesn't have that, but it would be really easy to add, I will add it on the next few days. regards musachy On 6/27/07, Max Pimm <[EMAIL PROTECTED]> wrote: I'm using the JSON plugin in one of my actions with the documentation that i've found here (http://cwiki.apache.org/S

S2 - Deserializing with the JSON plugin

2007-06-27 Thread Max Pimm
I'm using the JSON plugin in one of my actions with the documentation that i've found here (http://cwiki.apache.org/S2PLUGINS/json-plugin.html). My case is a little different as i am not using SMD. I receive calls to the action with parameters passed via the query string. Most of these paramete