"jsf converter resource bundle messages" Code Answer

3

you can find them all in chapter 2.5.2.4 of the jsf specification. here's an extract of relevance:

  • javax.faces.component.uiinput.conversion -- {0}: conversion error occurred
  • javax.faces.converter.bigdecimalconverter.decimal={2}: ''{0}'' must be a signed decimal number.
  • javax.faces.converter.bigdecimalconverter.decimal_detail={2}: ''{0}'' must be a signed decimal number consisting of zero or more digits, that may be followed by a decimal point and fraction. example: {1}
  • javax.faces.converter.bigintegerconverter.biginteger={2}: ''{0}'' must be a number consisting of one or more digits.
  • javax.faces.converter.bigintegerconverter.biginteger_detail={2}: ''{0}'' must be a number consisting of one or more digits. example: {1}
  • javax.faces.converter.booleanconverter.boolean={1}: ''{0}'' must be 'true' or 'false'.
  • javax.faces.converter.booleanconverter.boolean_detail={1}: ''{0}'' must be 'true' or 'false'. any value other than 'true' will evaluate to 'false'.
  • javax.faces.converter.byteconverter.byte={2}: ''{0}'' must be a number between 0 and 255.
  • javax.faces.converter.byteconverter.byte_detail={2}: ''{0}'' must be a number between 0 and 255. example: {1}
  • javax.faces.converter.characterconverter.character={1}: ''{0}'' must be a valid character.
  • javax.faces.converter.characterconverter.character_detail={1}: ''{0}'' must be a valid ascii character.
  • javax.faces.converter.datetimeconverter.date={2}: ''{0}'' could not be understood as a date.
  • javax.faces.converter.datetimeconverter.date_detail={2}: ''{0}'' could not be understood as a date. example: {1} chapter 2 request processing lifecycle 2-19
  • javax.faces.converter.datetimeconverter.time={2}: ''{0}'' could not be understood as a time.
  • javax.faces.converter.datetimeconverter.time_detail={2}: ''{0}'' could not be understood as a time. example: {1}
  • javax.faces.converter.datetimeconverter.datetime={2}: ''{0}'' could not be understood as a date and time.
  • javax.faces.converter.datetimeconverter.datetime_detail={2}: ''{0}'' could not be understood as a date and time. example: {1}
  • javax.faces.converter.datetimeconverter.pattern_type={1}: a 'pattern' or 'type' attribute must be specified to convert the value ''{0}''.
  • javax.faces.converter.doubleconverter.double={2}: ''{0}'' must be a number consisting of one or more digits.
  • javax.faces.converter.doubleconverter.double_detail={2}: ''{0}'' must be a number between 4.9e-324 and 1.7976931348623157e308 example: {1}
  • javax.faces.converter.enumconverter.enum={2}: ''{0}'' must be convertible to an enum.
  • javax.faces.converter.enumconverter.enum_detail={2}: ''{0}'' must be convertible to an enum from the enum that contains the constant ''{1}''.
  • javax.faces.converter.enumconverter.enum_no_class={1}: ''{0}'' must be convertible to an enum from the enum, but no enum class provided.
  • javax.faces.converter.enumconverter.enum_no_class_detail={1}: ''{0}'' must be convertible to an enum from the enum, but no enum class provided.
  • javax.faces.converter.floatconverter.float={2}: ''{0}'' must be a number consisting of one or more digits.
  • javax.faces.converter.floatconverter.float_detail={2}: ''{0}'' must be a number between 1.4e-45 and 3.4028235e38 example: {1}
  • javax.faces.converter.integerconverter.integer={2}: ''{0}'' must be a number consisting of one or more digits.
  • javax.faces.converter.integerconverter.integer_detail={2}: ''{0}'' must be a number between -2147483648 and 2147483647 example: {1}
  • javax.faces.converter.longconverter.long={2}: ''{0}'' must be a number consisting of one or more digits.
  • javax.faces.converter.longconverter.long_detail={2}: ''{0}'' must be a number between -9223372036854775808 to 9223372036854775807 example: {1}
  • javax.faces.converter.numberconverter.currency={2}: ''{0}'' could not be understood as a currency value.
  • javax.faces.converter.numberconverter.currency_detail={2}: ''{0}'' could not be understood as a currency value. example: {1}
  • javax.faces.converter.numberconverter.percent={2}: ''{0}'' could not be understood as a percentage.
  • javax.faces.converter.numberconverter.percent_detail={2}: ''{0}'' could not be understood as a percentage. example: {1}
  • javax.faces.converter.numberconverter.number={2}: ''{0}'' is not a number.
  • javax.faces.converter.numberconverter.number_detail={2}: ''{0}'' is not a number. example: {1}
  • javax.faces.converter.numberconverter.pattern={2}: ''{0}'' is not a number pattern.
  • javax.faces.converter.numberconverter.pattern_detail={2}: ''{0}'' is not a number pattern. example: {1}
  • javax.faces.converter.shortconverter.short={2}: ''{0}'' must be a number consisting of one or more digits.
  • javax.faces.converter.shortconverter.short_detail={2}: ''{0}'' must be a number between -32768 and 32767 example: {1}
  • javax.faces.converter.string={1}: could not convert ''{0}'' to a string.

you can also find them in javax.faces.messages properties file in the jsf api jar file. that's easier copying and editing :)

By araichev on April 7 2022

Answers related to “jsf converter resource bundle messages”

Only authorized users can answer the Search term. Please sign in first, or register a free account.