org.apache.myfaces.custom.calendar
Interface DateBusinessConverter

All Known Implementing Classes:
DefaultDateBusinessConverter

public interface DateBusinessConverter

Provide a bridge between the java.util.Date instance used by a component that receive date/time values and the "business" value used to represent the value.

Since:
1.1.10
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (miƩ, 03 sep 2008) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Method Summary
 Object getBusinessValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Date value)
          Convert the java.util.Date instance calculated from submittedValue, so the resulting object will be used later as the converted value and validation.
 Date getDateValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
          Used to retrieve the value stored in the business bean and convert it in a representation that the component (t:inputCalendar and t:inputDate for example)using this class can manipulate.
 

Method Detail

getBusinessValue

Object getBusinessValue(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component,
                        Date value)
Convert the java.util.Date instance calculated from submittedValue, so the resulting object will be used later as the converted value and validation.

Parameters:
context -
component -
value -
Returns:

getDateValue

Date getDateValue(javax.faces.context.FacesContext context,
                  javax.faces.component.UIComponent component,
                  Object value)
Used to retrieve the value stored in the business bean and convert it in a representation that the component (t:inputCalendar and t:inputDate for example)using this class can manipulate.

Parameters:
context -
component -
value -
Returns:


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.