|
DWR returning complex data types?: msg#00146java.dwr.user
Hi, I love this DWR stuff, so easy to get going, until now. Anyway I am fairly new to DWR so this question should be an easy one to answer i hope. I have the following object model Campaign(){ List<Promotion> promotions; List<Page> pages; } --The problem When i run something like addPageToCampaign() i want the whole of the Campaign object to be returned and available in JavaScript. I.e. it is simple to get DWR to return a list of Promotion objects and then run data[0]['param1'] How do i get DWR to deal with the whole of the Campaign object, i.e. containing 2 lists of different objects. I have tried all kinds of Javascript notation but cant get it working. Any help greatly appreciated. Matt -- View this message in context: http://www.nabble.com/DWR-returning-complex-data-types--tf3239902.html#a9005885 Sent from the DWR - Users mailing list archive at Nabble.com.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Issue with polling requests frequency, Schava Eugene |
|---|---|
| Next by Date: | RE: DWR returning complex data types?, matan-FP6co0geiwbQT0dZR+AlfA |
| Previous by Thread: | CVS state, Joe Walker |
| Next by Thread: | RE: DWR returning complex data types?, matan-FP6co0geiwbQT0dZR+AlfA |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |