* Return the WishList View
* @return
*/
public WishListView getWishListView() {
WishListView wlv = new WishListView(getMainView());
WishList wl = getWishList();
if (req.getParameter(Parameters.REMOVE.getId()) != null) {
String removeId = req.getParameter(Parameters.REMOVE.getId());
l.info("removing wish list item "+removeId+" for session: "+req.getSession().getId());
ProductsInWishListService piwls = new ProductsInWishListService();
ProductsInWishList piwl = piwls.getById(new Long(removeId));
piwls.remove(piwl);
}
wlv.setWishList(wl);
wlv.addContentView(new ContentView(JSP_WISHLIST, wl.getName()));
return wlv;
}