Class UiCalendarLocalDateTimeNullIfInvalidConverter

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

    public class UiCalendarLocalDateTimeNullIfInvalidConverter
    extends Object
    implements javax.faces.convert.Converter<LocalDateTime>
    Converter for UICalendar components that behaves similar to the default converter for those components, but returns null when the date or time is invalid.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • UiCalendarLocalDateTimeNullIfInvalidConverter

        public UiCalendarLocalDateTimeNullIfInvalidConverter()
    • Method Detail

      • getAsObject

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

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