logo       

DWR returning complex data types?: msg#00146

java.dwr.user

Subject: DWR returning complex data types?


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>
Google Custom Search

News | FAQ | advertise