| org.sakaiproject.tool.gradebook.jsf.NontrailingDoubleConverter
NontrailingDoubleConverter | public class NontrailingDoubleConverter extends NumberConverter (Code) | | The standard JSF NumberConverter handles output formatting of double
numbers nicely by printing them as an integer if there's nothing past
the decimal point. On input either a Long or a Double might be
returned from "getAsObject". In earlier versions of MyFaces, if the
input value was going to a Double bean property, conversion would
happen silently. In MyFaces 1.1.1, a IllegalArgumentException is
thrown. This converter emulates the old behavior by converting Long
values to Double values before passing them to the backing bean.
|
Method Summary | |
public Object | getAsObject(FacesContext context, UIComponent component, String value) Always returns either a null or a Double. |
NontrailingDoubleConverter | public NontrailingDoubleConverter()(Code) | | |
getAsObject | public Object getAsObject(FacesContext context, UIComponent component, String value)(Code) | | Always returns either a null or a Double.
|
|
|