// Is the bean set?
if (this.basketController != null) {
// Abort here
- throw new NullPointerException("basketController is null");
+ throw new NullPointerException("basketController is null"); //NOI18N
}
// Are at least the required fields set?
if (!this.isRequiredPersonalDataSet()) {
// Not set, should not happen
- return "checkout2";
+ return "checkout2"; //NOI18N
} else if (this.basketController.isEmpty()) {
// Nothing to order
- return "empty_basket";
+ return "empty_basket"; //NOI18N
}
// Create customer instance
} catch (final JMSException ex) {
// TODO: Log exception?
// Not working
- return "jms_failed";
+ return "jms_failed"; //NOI18N
}
// Clear basket
this.basketController.clear();
// All fine
- return "checkout_done";
+ return "checkout_done"; //NOI18N
}
@Override
*/
private Customer createCustomer () {
// Required personal data must be set
- assert (this.isRequiredPersonalDataSet()) : "not all personal data is set";
+ assert (this.isRequiredPersonalDataSet()) : "not all personal data is set"; //NOI18N
// Create new customer instance
Customer customer = new ShopCustomer();
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
- <h:selectOneMenu class="select" id="gender_selection" value="#{customer.gender}">
+ <h:selectOneMenu class="select" id="gender" value="#{customer.gender}">
<f:selectItems value="#{gender.selectableGenders}" var="g" itemValue="#{g}" itemLabel="#{msg[g.messageKey]}" />
</h:selectOneMenu>
</ui:composition>