cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: Java PetStore sample - alternative view
Date Thu, 20 Mar 2003 06:42:50 GMT
Thank you very much, Leo. I've committed your changes and I made some 
modifications so that you can dynamically select the view from the 
webapp: either Velocity or Xsp.

Regards,

Chris

leo leonid wrote:
> 
> On Montag, März 17, 2003, at 04:37  Uhr, Christopher Oliver wrote:
> 
>> Does Xsp have some way of doing number formatting? The numeric values 
>> you receive from JavaScript are of type java.lang.Double.
>>
> 
> it's done in the xsl-stylesheet now.
> 
> The XSP view is now up to date with your vm templates. All new and 
> updated files are available at
> => http://proto2.leonid.de
> 
> In petstore.js I added a few lines to checkout() according to your 
> recent changes to viewCart() :
> 
> 
>         // Checkout
> 
>         function checkout() {
> +           var cartItems = [];
> +           for (var i in cartForm.cart.cartItems) {
> +               var cartItem = cartForm.cart.cartItems[i];
> +               cartItems.push(cartItem);
> +           }
>             sendPageAndWait("/view/Checkout.html", {
>                             accountForm: accountForm,
>                             cartForm: cartForm,
> +                           cartItems: cartItems,
>                             yoshi: yoshi
>             });
> 
> 
> 
> /Leo
> 



Mime
View raw message