LoginSignup
1
1

More than 5 years have passed since last update.

JSF2(Mojarra)でBean Validationを無効にする

Posted at

web.xmlにcontext-paramを追加すればよい。

web.xml
  <!--
    Bean Validatorによる妥当性検証を無効にしたい場合はparam-valueをtrueに設定します。
    有効にしたければparam-valueをfalseに設定するか、この定義を削除してください。
  -->
  <context-param>
    <param-name>javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR</param-name>
    <param-value>true</param-value>
  </context-param>
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1