return opf;
}
public OrderListView getCustomerOrders() {
OrderListView olv = new OrderListView(getMainView());
String title = null;
// if (inProgressOnly) {
// title = "Orders in Progress";
// olv.setOrders(service.getOrdersInProgress());
// }
// else {
// title = "All Orders";
// olv.setOrders(service.getAll());
// }
Visitor v = (Visitor) req.getSession().getAttribute(SESSION_ATTRIBUTE_VISITOR);
title = "All Orders";
olv.setOrders(service.getByCustomerId(v.getCustomer().getId()));
olv.addContentView(new ContentView(JSP_ORDER_LIST, title));
return olv;
}