org.jboss.seam.ui.taglib
Class ConvertDateTimeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.faces.webapp.ConverterELTag
org.jboss.seam.ui.taglib.ConvertDateTimeTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class ConvertDateTimeTag
- extends javax.faces.webapp.ConverterELTag
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
protected javax.faces.convert.Converter |
createConverter()
|
void |
setDateStyle(javax.el.ValueExpression __dateStyle)
Predefined formatting style which determines how the date component of a date string is to be formatted and parsed. |
void |
setLocale(javax.el.ValueExpression __locale)
Locale whose predefined styles for dates and times are used during formatting or parsing. |
void |
setPattern(javax.el.ValueExpression __pattern)
Custom formatting pattern which determines how the date/time string should be formatted and parsed. |
void |
setTimeStyle(javax.el.ValueExpression __timeStyle)
Predefined formatting style which determines how the time component of a date string is to be formatted and parsed. |
void |
setTimeZone(javax.el.ValueExpression __timeZone)
Time zone in which to interpret any time information in the date String. |
void |
setType(javax.el.ValueExpression __type)
Specifies what contents the string value will be formatted to include, or parsed expecting. |
Methods inherited from class javax.faces.webapp.ConverterELTag |
doStartTag |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertDateTimeTag
public ConvertDateTimeTag()
setDateStyle
public void setDateStyle(javax.el.ValueExpression __dateStyle)
- Predefined formatting style which determines how the date component of a date string is to be formatted and parsed. Applied only if type is "date" or "both". Valid values are "default", "short", "medium", "long", and "full". Default value is "default".
Setter for dateStyle
- Parameters:
dateStyle
- - new value
setLocale
public void setLocale(javax.el.ValueExpression __locale)
- Locale whose predefined styles for dates and times are used during formatting or parsing. If not specified, the Locale returned by FacesContext.getViewRoot().getLocale() will be used. Value must be either a VB expression that evaluates to a java.util.Locale instance, or a String that is valid to pass as the first argument to the constructor java.util.Locale(String language, String country). The empty string is passed as the second argument.
Setter for locale
- Parameters:
locale
- - new value
setPattern
public void setPattern(javax.el.ValueExpression __pattern)
- Custom formatting pattern which determines how the date/time string should be formatted and parsed.
Setter for pattern
- Parameters:
pattern
- - new value
setTimeStyle
public void setTimeStyle(javax.el.ValueExpression __timeStyle)
- Predefined formatting style which determines how the time component of a date string is to be formatted and parsed. Applied only if type is "time" or "both". Valid values are "default", "short", "medium", "long", and "full". Default value is "default".
Setter for timeStyle
- Parameters:
timeStyle
- - new value
setTimeZone
public void setTimeZone(javax.el.ValueExpression __timeZone)
- Time zone in which to interpret any time information in the date String. Value must be either a VB expression that evaluates to a java.util.TimeZone instance, or a String that is a timezone ID as described in the javadocs for java.util.TimeZone.getTimeZone().
Setter for timeZone
- Parameters:
timeZone
- - new value
setType
public void setType(javax.el.ValueExpression __type)
- Specifies what contents the string value will be formatted to include, or parsed expecting. Valid values are "date", "time", and "both". Default value is "date".
Setter for type
- Parameters:
type
- - new value
createConverter
protected javax.faces.convert.Converter createConverter()
throws javax.servlet.jsp.JspException
- Specified by:
createConverter
in class javax.faces.webapp.ConverterELTag
- Throws:
javax.servlet.jsp.JspException
Copyright © 2011 Seam Framework. All Rights Reserved.