JSP カスタムタグのライブラリ


validatelength タグ

input タグの name 属性の値の長さが指定された範囲でなければならないあることを指定します。検証が失敗した場合は、タグのボディが表示され、message または msgkey 値が validatesummary タグに提供されます。

検証する input タグの clientvalidate 属性が「none」でないことを確認してください。input タグを含む form タグの clientvalidate 属性は「true」に設定してください。

コンテキスト次のタグで有効です。


構文<domino:validatelength
name="input tag name"
max="maximum length"
min="minimum length"
message="message to display if validation fails"
msgkey="message bundle key"
bundle="name of .properties file bundle"
locale="<languageCode>_<countryCode>"
alert="true|false"
onalert="alert dialog box message"
debug="true|false"
onfailure="inline|exception"
time="true|false"
The HTML tag attributes listed below>

属性alert
bundle
locale
max
message
min
msgkey
name
onalert
debug、onfailure、および time の定義については、「共通の Lotus Domino JSP タグの属性」を参照してください。

HTML 属性次の標準 HTML タグの属性については、「共通の HTML タグ属性」を参照してください。



関連項目