| org.andromda.cartridges.jsf.converters.DateTimeConverter
DateTimeConverter | public class DateTimeConverter extends javax.faces.convert.DateTimeConverter implements DateConverter(Code) | | Overrides the default DateTimeConverter to include conversion of Calendar
instances as well as Date instances.
Unfortunately because of poor design in myfaces's calendar component, we have to implement
DateConverter so that we can correctly convert to a date in the inputCalendar implementation.
author: Chad Brandon |
getAsDate | public Date getAsDate(FacesContext context, UIComponent component)(Code) | | See Also: org.apache.myfaces.custom.calendar.HtmlCalendarRenderer.DateConverter.getAsDate(javax.faces.context.FacesContextjavax.faces.component.UIComponent) |
getAsObject | public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException(Code) | | See Also: javax.faces.convert.Converter.getAsObject(javax.faces.context.FacesContextjavax.faces.component.UIComponentjava.lang.String) |
getAsString | public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException(Code) | | See Also: javax.faces.convert.Converter.getAsString(javax.faces.context.FacesContextjavax.faces.component.UIComponentjava.lang.Object) |
getTimeZone | public TimeZone getTimeZone()(Code) | | Overridden because the default timeZone is set as GMT, whereas it should be the default
for the operating system (at least in my opinion).
See Also: javax.faces.convert.DateTimeConverter.getTimeZone |
restoreState | public void restoreState(FacesContext facesContext, Object state)(Code) | | See Also: DateTimeConverter.getTimeZone() See Also: javax.faces.convert.DateTimeConverter.restoreState(javax.faces.context.FacesContextjava.lang.Object) |
|
|