I use form submit the data. Add onClick listener to the submit button, and use 
FormListener to listen the action (add onActionComplete orr onActionFailed).

When you get the actionComplete message, you can update data in the store or 
change the store model which you have initialized when the page loaded.


2009-01-07 



peter 



发件人: Frans Thamura 
发送时间: 2009-01-06  02:52:00 
收件人: gwt-ext 
抄送: 
主题: Re: Integrating GWT-Ext with Struts2 
 
any idea for submit mechanism?
F
On Mon, Jan 5, 2009 at 9:26 PM, peter <[email protected]> wrote:
> I am new to Gwt-ext too. And I have tried integrate Struts action in my
> application. I think it's work fine for me. You can use JsonReader and
> HttpProxy to load Json data from Action.do.
>
> The example code is here:
>
>  final RecordDef recordDef = new RecordDef(new FieldDef[]{
>                 new StringFieldDef("item1", "item1"),
>                 new StringFieldDef("item2", "item2"),
>                 new IntegerFieldDef("item3", "item3"),
>                 new StringFieldDef("item4", "item4")
> });
> JsonReader jsreader = new JsonReader(recordDef);
> jsreader.setRoot("itemList");
> jsreader.setTotalProperty("totalCount");
> HttpProxy dataProxy = new HttpProxy("action.do");
> Store   store = new GroupingStore(dataProxy,jsreader,true);
> store.load();
>
>
> Then use GridPanel to display data.
>
> 2009-01-05
> ________________________________
> peter
> ________________________________
> 发件人: Syed Shahul
> 发送时间: 2009-01-05  21:57:44
> 收件人: GWT-Ext Developer Forum
> 抄送:
> 主题: Integrating GWT-Ext with Struts2
> Hi All,
>         i am new to Gwt-Ext, i need to get the JSON data from Struts2
> in my Gwt-ext code to display the Charts,
>         can anyone help me regards,
>         thanking you in anticipation
> Regards,
> Syed Shahul
> >
>
-- 
-- 
Frans Thamura
Meruvian
One Stop Java and Enterprise OSS Provider
Technopreneurship, Training, Internship, Outsourcing and Corporate
Competency Center
Mobile: +62 855 7888 699
Blog & Profile: http://frans.thamura.info
Training JENI, Medallion (Alfresco, Liferay dan Compiere).. buruan...
URL: http://www.meruvian.com

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