ExtJS script submit code is sth like this :
fs.submit({url:'save.action', waitMsg:'Saving Data...'});
ExtJS form submit action is an xhr request to your form url,You just
handle it in struts2 as
you did in a normal html form.But your response must have the same
format with your extjs form reader.
just a little another question
i try to use JSON as the communication between S2 and my ExtJS Apps
but I can see we can use Form in ExtJS to replace the Form in HTML
i still dont get how to develop a good JSON based S2, and also the good
ExtJS apps in the client
esp i am very weak in JSON RPC w
struts2 json plugin for extjs works good for most time.
but extjs 's grid json structure is a little special,
you could extend json plugin's classes to support it.
ps:In some situations,you could try freemarker type result.
Like global exception,validation errors...
--
:27:24 PM
Subject: Re: JSON and ExtJS
yes indeed.
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
musachy
On Dec 20, 2007 4:23 PM, Peter Bliznak <[EMAIL PROTECTED]> wrote:
> hm..so you are saying
>
> putting things into MAP like this:
>
> MAP entry 1 : success
#x27;:'value0'},...
>
> if so...then you are making my day
>
>
> - Original Message
> From: Musachy Barroso <[EMAIL PROTECTED]>
> To: Struts Users Mailing List
>
> Sent: Thursday, December 20, 20
x27;description':'desc0','id':0,'name':'name0','value':'value0'},...
if so...then you are making my day
- Original Message
From: Musachy Barroso <[EMAIL PROTECTED]>
To:
'},{'description':'desc1','id':1,'name':'name1','value':'value1'}
> how to add those at the beginning " 'success': true, 'totalCount':'2',
> " ?
>
> Peter.
> ---
;value0'},{'description':'desc1','id':1,'name':'name1','value':'value1'}
how to add those at the beginning " 'success': true, 'totalCount':'2', " ?
Peter.
- Original Message
You might also want to take a look at the JSON plugin, to decouple
your action from JSON at all.
musachy
On Dec 20, 2007 12:28 PM, Gary Affonso <[EMAIL PROTECTED]> wrote:
> Rick Reumann wrote:
> > On Dec 20, 2007 10:54 AM, Martin Gainty <[EMAIL PROTECTED]> wrote:
> >
> >> JavaDoc mentions that sh
Rick Reumann wrote:
On Dec 20, 2007 10:54 AM, Martin Gainty <[EMAIL PROTECTED]> wrote:
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 re
Yes, What was your question?
Frans Thamura <[EMAIL PROTECTED]> wrote: anyone work with JSON @ Struts2 and
ExtJS integration
F
-
Never miss a thing. Make Yahoo your homepage.
On Dec 20, 2007 10:54 AM, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> 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
> hib
I am... it works pretty sweet and with minimal hassle I'm
currently revising a tutorial on using Struts 2 + JSON plugin + ExtJS
to make a pageable data grid. I'll let everyone know when I post it.
On a side note, it was insanely easy to use. I put it all together in
about 10 minutes or so.
Th
nn" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
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 PR
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 ment
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
Could you be more precise ? I am working on project that employs all
of mentioned technologies.
Regards.
Marcin Zduniak
On Dec 20, 2007 3:54 PM, Frans Thamura <[EMAIL PROTECTED]> wrote:
> anyone work with JSON @ Struts2 and ExtJS integration
>
---
I use it with Struts1.. not sure why it would be that much different.
On Dec 20, 2007 9:54 AM, Frans Thamura <[EMAIL PROTECTED]> wrote:
> anyone work with JSON @ Struts2 and ExtJS integration
>
> F
>
--
Rick
-
To unsubscribe,
anyone work with JSON @ Struts2 and ExtJS integration
F
19 matches
Mail list logo