Package org.apache.beehive.netui.pageflow

Examples of org.apache.beehive.netui.pageflow.Forward


      )
      protected Forward viewCreateOrder()
      {
          _sharedFlow.ensureLogin();

          Forward forward = new Forward("success");
          forward.addOutputForm(_orderForm);
          forward.addActionOutput("creditCardTypes", _orderControl.getCreditCards());
      forward.addActionOutput("addresses", _addressControl.getUserAddresses(_sharedFlow.getAccount().getUserId()));

          return forward;
  }
View Full Code Here


            throw new IllegalStateException("Found a null itemId executing action viewProduct");

        _currentItem = _catalogControl.getItem(itemId);
        _currentProduct = _catalogControl.getProduct(_currentItem.getProductId());

        Forward f = new Forward("item");
        f.addActionOutput("item", _currentItem);
        f.addActionOutput("product", _currentProduct);
        return f;
    }
View Full Code Here

                cart.addItem(toAddItem);
            }
            /* todo: error handling path */
        }

        return new Forward("cart", "product", _currentProduct);
    }
View Full Code Here

        return new Forward("cart", "product", _currentProduct);
    }

    @Jpf.Action(useFormBean = "_cartForm", forwards={@Jpf.Forward(name="cart", path="cart.jsp")})
    protected Forward viewCart(CartForm form) {
        return new Forward("cart");
    }
View Full Code Here

            @Jpf.Forward(name="done", returnAction="checkoutDone")
        }
    )
    public Forward done()
    {
        return new Forward("done");
    }
View Full Code Here

                                                       type = org.apache.beehive.samples.petstore.model.Product[].class,
                                                       required = false)
                                 })
                })
    protected Forward updateCartQuantities(CartForm form) {
        return new Forward("cart", "product", _currentProduct);
    }
View Full Code Here

                })
    protected Forward removeItemFromCart(CartForm form) {
        if(_cartForm.getCart().containsItemId(form.getWorkingItemId()))
            _cartForm.getCart().removeItemById(form.getWorkingItemId());

        return new Forward("cart", "product", _currentProduct);
    }
View Full Code Here

    )
    protected Forward viewConfirm(CheckoutForm orderForm) throws InvalidIdentifierException
    {
        _sharedFlow.ensureLogin();

        Forward f = new Forward("confirm");
        f.addActionOutput("order", _order);
        f.addActionOutput("lineItems", _sharedFlow.getCart().getLineItems());
        f.addActionOutput("billingAddress", _addressControl.getAddress(orderForm.getOrder().getBillingAddress()));
        f.addActionOutput("shippingAddress", _addressControl.getAddress(orderForm.getOrder().getShippingAddress()));
        return f;
    }
View Full Code Here

        _sharedFlow.handleCheckout();
   
    // putting the orderId in the attributes flags this request as a new order
    getRequest().setAttribute("orderId", orderId);
   
        return new Forward("success");
    }
View Full Code Here

    Address shippingAddress = new Address();
   
    billingAddress = _addressControl.getAddress(_order.getBillingAddress());
    shippingAddress = _addressControl.getAddress(_order.getShippingAddress());
   
        Forward f=new Forward("success");
        f.addActionOutput("order", _order);
    f.addActionOutput("lineItems", getLineItems(_order.getOrderId()));
        f.addActionOutput("billingAddress", billingAddress);
        f.addActionOutput("shippingAddress", shippingAddress);
        return f;
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.pageflow.Forward

Copyright © 2018 www.massapicom. 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.