|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.html5.validator.DateTimeRangeValidator
@JSFValidator(name="fx:validateDateTimeRange",
bodyContent="empty",
tagClass="org.apache.myfaces.html5.tag.input.ValidateDateTimeRangeTag",
id="org.apache.myfaces.html5.DateTimeRange")
public class DateTimeRangeValidator
Validate that the date entered is within a given range. Rendered min/max attributes of hx:inputDateTime is driven by
this validator too.
| Field Summary |
|---|
| Fields inherited from interface javax.faces.validator.Validator |
|---|
NOT_IN_RANGE_MESSAGE_ID |
| Constructor Summary | |
|---|---|
DateTimeRangeValidator()
|
|
| Method Summary | |
|---|---|
void |
clearInitialState()
|
String |
getExceedMaximumMessage()
Message to show if the minimum is not set and submitted value exceeds specified maximum value. |
String |
getLessThanMinimumMessage()
Message to show if the maximum is not set and submitted value is before than specified minimum value. |
Object |
getMaximum()
Maximum date that can be selected on client-side and is used on validation at server-side. |
Object |
getMinimum()
Minimum date that can be selected on client-side and is used on validation at server-side. |
String |
getNotInRangeMessage()
Message to show if the minimum and minimum is set and submitted value is not in that range. |
Date |
getResolvedMaximum(String type)
Resolves the maximum date from the maximum property which accepts both java.util.Date and String. |
Date |
getResolvedMinimum(String type)
Resolves the minimum date from the minimum property which accepts both java.util.Date and String. |
boolean |
initialStateMarked()
|
boolean |
isTransient()
|
void |
markInitialState()
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state)
|
Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setExceedMaximumMessage(String exceedMaximumMessage)
|
void |
setLessThanMinimumMessage(String lessThanMinimumMessage)
|
void |
setMaximum(Object maximum)
|
void |
setMinimum(Object minimum)
|
void |
setNotInRangeMessage(String notInRangeMessage)
|
void |
setTransient(boolean transientValue)
|
void |
validate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent uiComponent,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateTimeRangeValidator()
| Method Detail |
|---|
public void validate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent uiComponent,
Object value)
throws javax.faces.validator.ValidatorException
validate in interface javax.faces.validator.Validatorjavax.faces.validator.ValidatorException
public Date getResolvedMinimum(String type)
throws ParseException
ParseException - if the value of minimum property is String and cannot be parsed for the given type.
public Date getResolvedMaximum(String type)
throws ParseException
ParseException - if the value of maximum property is String and cannot be parsed for the given type.@JSFProperty(deferredValueType="java.lang.Object") public Object getMinimum()
public void setMinimum(Object minimum)
@JSFProperty(deferredValueType="java.lang.Object") public Object getMaximum()
public void setMaximum(Object maximum)
@JSFProperty(deferredValueType="java.lang.String") public String getExceedMaximumMessage()
public void setExceedMaximumMessage(String exceedMaximumMessage)
@JSFProperty(deferredValueType="java.lang.String") public String getLessThanMinimumMessage()
public void setLessThanMinimumMessage(String lessThanMinimumMessage)
@JSFProperty(deferredValueType="java.lang.String") public String getNotInRangeMessage()
public void setNotInRangeMessage(String notInRangeMessage)
public Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHolder
public void restoreState(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderpublic boolean isTransient()
isTransient in interface javax.faces.component.StateHolderpublic void setTransient(boolean transientValue)
setTransient in interface javax.faces.component.StateHolderpublic void clearInitialState()
clearInitialState in interface javax.faces.component.PartialStateHolderpublic boolean initialStateMarked()
initialStateMarked in interface javax.faces.component.PartialStateHolderpublic void markInitialState()
markInitialState in interface javax.faces.component.PartialStateHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||