2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

Tag reference sheet

Tag library reference for the following tag libraries:

Shale Validator JSF Components and Tags

This tag library contains tags for the JSF components supported by the Shale Framework for integration with Commons Validator.

This is version 1.0.

Required attributes are marked with a *

<val:commonsValidator>

Provides access to Commons Validators.

Can contain: JSP

Attributes

NameDescriptionType
arg A value that's plugged into the message String
client If true, validation is performed on the client String
datePatternStrict A date pattern using syntax defined in java.text.SimpleDateFormat String
mask A regular expression to which the value must conform String
max The maximum valid value String
maxlength The maximum valid length of the field String
message A message displayed when validation fails String
min The minimum valid value String
minlength The minimum valid length of the field String
server If true, validation is performed on the server String
type The type of validator associated with this tag String

<val:validatorScript>

Generates JavaScript required for validation.

Can contain: empty

Attributes

NameDescriptionType
functionName* The name of the function to generate. String

<val:validatorVar>

Parameters for specific validators.

Can contain: empty

Attributes

NameDescriptionType
name* The name of the parameter. String
value* The value of the parameter. String

Shale Validator JSF Tags

This tag library contains tags for the JSF validators supported by the Shale Framework for integration with Commons Validator.

This is version 1.0.

  • double Validates double input for both format and range restrictions
  • float Validates float input for both format and range restrictions
  • integer Validates integer input for both format and range restrictions
  • long Validates long input for both format and range restrictions
  • short Validates short input for both format and range restrictions
Required attributes are marked with a *

<validate:double>

Validates double input for both format and range restrictions.

Can contain: empty

Attributes

NameDescriptionType
client Flag indicating whether this validation should be enforced on the client side as well as the server side. If not specified, the default is "true". String
maximum Upper limit on legal values for this component. If not specified, no upper limit is enforced. String
message Error message template for reporting validation errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
minimum Lower limit on legal values for this component. If not specified, no lower limit is enforced. String

<validate:float>

Validates float input for both format and range restrictions.

Can contain: empty

Attributes

NameDescriptionType
client Flag indicating whether this validation should be enforced on the client side as well as the server side. If not specified, the default is "true". String
maximum Upper limit on legal values for this component. If not specified, no upper limit is enforced. String
message Error message template for reporting validation errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
minimum Lower limit on legal values for this component. If not specified, no lower limit is enforced. String

<validate:integer>

Validates integer input for both format and range restrictions.

Can contain: empty

Attributes

NameDescriptionType
client Flag indicating whether this validation should be enforced on the client side as well as the server side. If not specified, the default is "true". String
maximum Upper limit on legal values for this component. If not specified, no upper limit is enforced. String
message Error message template for reporting validation errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
minimum Lower limit on legal values for this component. If not specified, no lower limit is enforced. String

<validate:long>

Validates long input for both format and range restrictions.

Can contain: empty

Attributes

NameDescriptionType
client Flag indicating whether this validation should be enforced on the client side as well as the server side. If not specified, the default is "true". String
maximum Upper limit on legal values for this component. If not specified, no upper limit is enforced. String
message Error message template for reporting validation errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
minimum Lower limit on legal values for this component. If not specified, no lower limit is enforced. String

<validate:short>

Validates short input for both format and range restrictions.

Can contain: empty

Attributes

NameDescriptionType
client Flag indicating whether this validation should be enforced on the client side as well as the server side. If not specified, the default is "true". String
maximum Upper limit on legal values for this component. If not specified, no upper limit is enforced. String
message Error message template for reporting validation errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
minimum Lower limit on legal values for this component. If not specified, no lower limit is enforced. String

Shale Converter JSF Tags

This tag library contains tags for the JSF Converters supported by the Shale Framework for integration with Commons Validator.

This is version 1.0.

  • double Convert between strings and doubles based on the specified converter properties
  • float Convert between strings and floats based on the specified converter properties
  • integer Convert between strings and integers based on the specified converter properties
  • long Convert between strings and longs based on the specified converter properties
  • short Convert between strings and shorts based on the specified converter properties
Required attributes are marked with a *

<convert:double>

Convert between strings and doubles based on the specified converter properties.

Can contain: empty

Attributes

NameDescriptionType
locale Locale to use for locale-sensitive conversions. If not specified, the Locale for the current view is used. String
message Error message template for reporting conversion errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
pattern Number format pattern string (see javadocs for java.text.DecimalFormat for details) to use for conversion. If not specified, no pattern is used. String

<convert:float>

Convert between strings and floats based on the specified converter properties.

Can contain: empty

Attributes

NameDescriptionType
locale Locale to use for locale-sensitive conversions. If not specified, the Locale for the current view is used. String
message Error message template for reporting conversion errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
pattern Number format pattern string (see javadocs for java.text.DecimalFormat for details) to use for conversion. If not specified, no pattern is used. String

<convert:integer>

Convert between strings and integers based on the specified converter properties.

Can contain: empty

Attributes

NameDescriptionType
locale Locale to use for locale-sensitive conversions. If not specified, the Locale for the current view is used. String
message Error message template for reporting conversion errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
pattern Number format pattern string (see javadocs for java.text.DecimalFormat for details) to use for conversion. If not specified, no pattern is used. String

<convert:long>

Convert between strings and longs based on the specified converter properties.

Can contain: empty

Attributes

NameDescriptionType
locale Locale to use for locale-sensitive conversions. If not specified, the Locale for the current view is used. String
message Error message template for reporting conversion errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
pattern Number format pattern string (see javadocs for java.text.DecimalFormat for details) to use for conversion. If not specified, no pattern is used. String

<convert:short>

Convert between strings and shorts based on the specified converter properties.

Can contain: empty

Attributes

NameDescriptionType
locale Locale to use for locale-sensitive conversions. If not specified, the Locale for the current view is used. String
message Error message template for reporting conversion errors. If not specified, the default value from either the application message resource bundle, or the default resource bundle, will be used. String
pattern Number format pattern string (see javadocs for java.text.DecimalFormat for details) to use for conversion. If not specified, no pattern is used. String