Class BigDecimalCurrencyCodeConverter

  • All Implemented Interfaces:
    javax.faces.convert.Converter<BigDecimal>

    @Named
    public class BigDecimalCurrencyCodeConverter
    extends Object
    implements javax.faces.convert.Converter<BigDecimal>
    <h:outputFormat value="#{pricingPlan.price}"> <f:converter converterId="bigDecimalCurrencyCodeConverter"/> <f:attribute name="currencyCode" value="#{pricingPlan.currencyCode}"/> </h:outputFormat>
    Author:
    aripd.com
    • Constructor Detail

      • BigDecimalCurrencyCodeConverter

        public BigDecimalCurrencyCodeConverter()
    • Method Detail

      • getAsObject

        public BigDecimal getAsObject​(javax.faces.context.FacesContext context,
                                      javax.faces.component.UIComponent component,
                                      String value)
        Specified by:
        getAsObject in interface javax.faces.convert.Converter<BigDecimal>
      • getAsString

        public String getAsString​(javax.faces.context.FacesContext context,
                                  javax.faces.component.UIComponent component,
                                  BigDecimal value)
        Specified by:
        getAsString in interface javax.faces.convert.Converter<BigDecimal>