Package de.xima.fc.gui.common.converter
Class UiCalendarLocalDateTimeNullIfInvalidConverter
- java.lang.Object
-
- de.xima.fc.gui.common.converter.UiCalendarLocalDateTimeNullIfInvalidConverter
-
- All Implemented Interfaces:
javax.faces.convert.Converter<LocalDateTime>
public class UiCalendarLocalDateTimeNullIfInvalidConverter extends Object implements javax.faces.convert.Converter<LocalDateTime>
Converter forUICalendar
components that behaves similar to the default converter for those components, but returnsnull
when the date or time is invalid.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description UiCalendarLocalDateTimeNullIfInvalidConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDateTime
getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
String
getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, LocalDateTime value)
-
-
-
Method Detail
-
getAsObject
public LocalDateTime getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
- Specified by:
getAsObject
in interfacejavax.faces.convert.Converter<LocalDateTime>
-
getAsString
public String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, LocalDateTime value)
- Specified by:
getAsString
in interfacejavax.faces.convert.Converter<LocalDateTime>
-
-