Hi Jeff,

thanks for your explanation, it answers my question!

Bye,
Phil

----- Original Message -----
From: "Schnitzer, Jeff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 24, 2002 10:13 PM
Subject: RE: [Mav-user] Domify and XML-Nodes!


> To get something like that, you would want getCart() to return an object
> which had methods getItems() and getTotal().  For example:
>
> public class YourModel
> {
>    public Cart getCart()  { ... }
> }
>
> public class Cart
> {
>     public int getItems()  { ... }
>     public float getTotal()  { ... }
> }
>
> Alternatively, you could have getCart() return a Map, but that would
produce
> XML which looked like this:
>
> <Cart>
>   <item key="items">0</item>
>   <item key="total">0.0</item>
> <Cart>
>
> Does that answer your question?
>
> Jeff Schnitzer
> [EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: Philip M. Meier [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, August 24, 2002 12:55 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Mav-user] Domify and XML-Nodes!
> >
> > Hi!
> >
> > As far as I know Domify converts any of the basic java types to text
> > nodes,
> > but what to do if a node consists of subnodes? Please look at the
> > following
> > example to get my problem:
> >
> > <Cart>
> >   <items>0</items>
> >   <total>0.0</total>
> > <Cart>
> >
> > The content of the cart-tag is normally the return-value of the
> > setCart-method in the controller, but how can I return subnodes like in
> > example above? I hope you understand what I try to explain?! It is quite
> > hard for me to explain it in English...
> >
> > Thanks,
> > Phil

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user
Archives are available at http://www.mail-archive.com/

Reply via email to