import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.mxchange.jshopcore.events.category.AddedCategoryEvent;
+import org.mxchange.jshopcore.events.product.AddedProductEvent;
import org.mxchange.jshopcore.model.category.Category;
import org.mxchange.jshopcore.model.category.CategorySessionBeanRemote;
import org.mxchange.jshopcore.model.product.Product;
this.addCategory(event.getAddedCategory());
}
+ @Override
+ public void afterShopProductAdded (@Observes final AddedProductEvent event) {
+ // Add it here, too.
+ this.addProduct(event.getAddedProduct());
+ }
+
@Override
public List<Category> getAllCategories () throws FacesException {
// Return it