- on an enumeration, you may wish to have i18n keys around, then also you
should handle them over:
<f:selectItems value="#{receiptController.allPaymentTypes()}" var="paymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType.i18nKey]}" />
Sounds convincing, right? :-)
Signed-off-by: Roland Häder <roland@mxchange.org>
<h:panelGroup styleClass="error-container" layout="block">
<p:message for="receiptNumber" />
</h:panelGroup>
+
<h:panelGroup styleClass="table-row" layout="block">
<div class="table-left-medium">
<p:outputLabel for="paymentType" value="#{project.LOGIN_FINANCIAL_INCOME_INTERVAL}" />
requiredMessage="#{project.FIELD_FINANCIAL_RECEIPT_PAYMENT_TYPE_REQUIRED}"
>
<f:selectItem itemValue="#{null}" itemLabel="#{msg.NONE_SELECTED}" noSelectionOption="true" />
- <f:selectItems value="#{receiptController.allPaymentTypes()}" var="paymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType]}" />
+ <f:selectItems value="#{receiptController.allPaymentTypes()}" var="paymentType" itemValue="#{paymentType}" itemLabel="#{msg[paymentType.i18nKey]}" />
</p:selectOneMenu>
</div>
</h:panelGroup>