modify validation message

This commit is contained in:
Shinsuke Sugaya 2015-11-08 11:39:35 +09:00
parent 19451a3b07
commit d604d4b3f8
3 changed files with 1 additions and 24 deletions

View file

@ -39,7 +39,7 @@
<!-- Main Framework -->
<dbflute.version>1.1.0-sp8</dbflute.version>
<lastaflute.version>0.6.5-RC3</lastaflute.version>
<lastaflute.version>0.6.5-RC5</lastaflute.version>
<lasta.taglib.version>0.6.0</lasta.taglib.version>
<servlet.version>3.1.0</servlet.version>
<jsp.version>2.3.1</jsp.version>

View file

@ -140,10 +140,6 @@ public class FessMessages extends FessLabels {
/** The key of the message: {item} cannot convert as {propertyType}. */
public static final String CONSTRAINTS_TypeAny_MESSAGE = "{constraints.TypeAny.message}";
/** The key of the message: {item} cannot convert as {propertyType}. */
public static final String ORG_LASTAFLUTE_VALIDATOR_CONSTRAINTS_TypeAny_MESSAGE =
"{org.lastaflute.validator.constraints.TypeAny.message}";
/** The key of the message: could not login. */
public static final String ERRORS_LOGIN_FAILURE = "{errors.login.failure}";
@ -1057,23 +1053,6 @@ public class FessMessages extends FessLabels {
return this;
}
/**
* Add the created action message for the key 'org.lastaflute.validator.constraints.TypeAny.message' with parameters.
* <pre>
* message: {item} cannot convert as {propertyType}.
* comment: TODO workaround
* </pre>
* @param property The property name for the message. (NotNull)
* @param item The parameter item for message. (NotNull)
* @param propertyType The parameter propertyType for message. (NotNull)
* @return this. (NotNull)
*/
public FessMessages addOrgLastafluteValidatorConstraintsTypeAnyMessage(String property, String item, String propertyType) {
assertPropertyNotNull(property);
add(property, new ActionMessage(ORG_LASTAFLUTE_VALIDATOR_CONSTRAINTS_TypeAny_MESSAGE, item, propertyType));
return this;
}
/**
* Add the created action message for the key 'errors.login.failure' with parameters.
* <pre>

View file

@ -51,8 +51,6 @@ constraints.TypeLong.message = {item} should be numeric.
constraints.TypeFloat.message = {item} should be numeric.
constraints.TypeDouble.message = {item} should be numeric.
constraints.TypeAny.message = {item} cannot convert as {propertyType}.
# TODO workaround
org.lastaflute.validator.constraints.TypeAny.message = {item} cannot convert as {propertyType}.
# ----------------------------------------------------------
# Application Exception