Documentation



Send Feedback | Print | PDF | ePub | Mobi
Java Platform, Enterprise Edition: The Java EE Tutorial

16.6 Using Default Validators

In addition to the validators you declare on the components, you can also specify zero or more default validators in the application configuration resource file. The default validator applies to all javax.faces.component.UIInput instances in a view or component tree and is appended after the local defined validators. Here is an example of a default validator registered in the application configuration resource file:

<faces-config>
 <application>
 <default-validators>
 <validator-id>javax.faces.Bean</validator-id>
 </default-validators>
 <application/>
</faces-config>

Table of Contents

Java Platform, Enterprise Edition: The Java EE Tutorial

|

Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices

AltStyle によって変換されたページ (->オリジナル) /