Thanks for the great link!
a few questions on  JSONSerializer
will thread synchronization ever be accomodated?
user1 goes in and requests JSON object for Charlie Rose
DB update goes into place correcting birthplace of Big Sky, Montanna to Big
Sky, Montana
user2 goes in and requests JSON object for Charlie Rose
will user2 get birth state of Montanna or Montana?

JavaDoc mentions that shallow serialization will take place with the include
being arbiter of which collection classes
may be serialized..
hibernate has a similar situation where lazy_init="true" but I can request
hibernate to instantiate parent and child classes via
lazy_init="false"..
is there any capability for lazy_init="false" i.e. serialize everything as
default behaviour considered for JSONSerializer ?

Thanks for the great link!
Martin--
----- Original Message -----
From: "Rick Reumann" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, December 20, 2007 10:05 AM
Subject: Re: JSON and ExtJS


> Oops:) I just realized I replied to someone replying to the OP. Sorry
Marcin:)
>
> On Dec 20, 2007 10:04 AM, Rick Reumann <[EMAIL PROTECTED]> wrote:
> > On Dec 20, 2007 9:57 AM, Marcin Zduniak <[EMAIL PROTECTED]> wrote:
> > > Could you be more precise ? I am working on project that employs all
> > > of mentioned technologies.
> >
> > Well by precise, I mean I use Struts, I return JSON from my Actions
> > and then use that JSON form y Extjs components. Once your JSON is
> > returned from the server, you just use the Extjs components like they
> > show in all the examples.
> >
> >  I use Flexjson to convert my lists to JSON. In an Action it would
> > look something like:
> >
> > public ActionForward search(...) {
> >     int manufacturerId =
> > Integer.parseInt(request.getParameter("manufacturerId"));
> >     List<Car> cars = carsService.getCars(manufacturerId);
> >     String jsonResult = new flexjson.JSONSerializer().serialize(cars);
> >     response.setContentType("text/javascript");
> >     response.getWriter().write(jsonResult);
> >     return null;
> > }
> >
> > I have an example using the above with jquery to illustrate having one
> > select list alter another.
> > http://www.learntechnology.net/content/ajax/jquery_options.jsp
> >
>
>
>
> --
> Rick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to