Examples of CartForm


Examples of org.apache.beehive.samples.petstore.forms.CartForm

            Item toAddItem = _catalogControl.getItem(workingItemId);
            if (toAddItem != null)
                cart.addItem(toAddItem);
        }

        _cartForm = new CartForm();
        _cartForm.setCart(lookupCart());
        Forward forward = setupCartForward();
        forward.addActionOutput("product", _currentProduct);
        return forward;
    }
View Full Code Here

Examples of org.apache.beehive.samples.petstore.forms.CartForm

        return forward;
    }

    @Jpf.Action
    public Forward viewCart() {
        _cartForm = new CartForm();
        _cartForm.setCart(lookupCart());
        return setupCartForward();
    }
View Full Code Here

Examples of org.apache.beehive.samples.petstore.forms.CartForm

        forward.addActionOutput("product", _currentProduct);
        return forward;
    }

    private Forward setupCartForward() {
        CartForm form = new CartForm();
        form.setCart(lookupCart());

        Forward forward = new Forward("cart");
        forward.addOutputForm(form);
        return forward;
    }
View Full Code Here

Examples of org.hoteia.qalingo.web.mvc.form.CartForm

     
    return customerAddressForm;
  }
 
  public CartForm buildCartForm(final RequestData requestData) throws Exception {
    final CartForm cartForm = new CartForm();
    Customer customer = requestData.getCustomer();
    if(customer != null) {
       Set<CustomerAddress> addresses = customer.getAddresses();
       for (Iterator<CustomerAddress> iterator = addresses.iterator(); iterator.hasNext();) {
        CustomerAddress customerAddress = (CustomerAddress) iterator.next();
        if(customerAddress.isDefaultBilling()) {
          cartForm.setBillingAddressId(customerAddress.getId().toString());
        }
        if(customerAddress.isDefaultShipping()) {
          cartForm.setShippingAddressId(customerAddress.getId().toString());
        }
      }
    }
    return cartForm;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.