import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.mxchange.jcoreee.beans.BaseFrameworkBean;
+import org.mxchange.jshopcore.exceptions.CannotAddCategoryException;
import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
import org.mxchange.jshopcore.model.category.Category;
import org.mxchange.jshopcore.model.category.CategorySessionBeanRemote;
// Also send it to the controller bean
this.controller.addCategory(category);
- } catch (final CategoryTitleAlreadyUsedException ex) {
+ } catch (final CategoryTitleAlreadyUsedException | CannotAddCategoryException ex) {
// Continue to throw
throw new FaceletException(ex);
}
</navigation-case>
<navigation-case>
<from-outcome>basket</from-outcome>
- <to-view-id>/basketController.xhtml</to-view-id>
+ <to-view-id>/basket.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<h:column>
<f:facet name="header"><h:outputText value="Produkt:" /></f:facet>
- <h:outputText class="price" value="#{product.title}">
+ <h:outputText value="#{product.title}">
<f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
</h:outputText>
</h:column>
<h:column>
<f:facet name="header"><h:outputText value="Zwischensumme:" /></f:facet>
- <h:outputText value="-" rendered="#{basketController.amount == null || basketController.amount == 0}" />
- <h:outputText value="#{basketController.calculateItemPrice}" rendered="#{basketController.amount > 0}" />
+ <h:outputText class="price" value="-" rendered="#{basketController.amount == null || basketController.amount == 0}" />
+ <h:outputText class="price" value="#{basketController.calculateItemPrice}" rendered="#{basketController.amount > 0}" />
</h:column>
</h:dataTable>
</h:form>
.table_data_column {
width: 100px;
}
+
+.price {
+ text-align: right;
+}