Javadoc
The @FacesConverter annotation allows you to define a class as a converter.
@FacesConverter(value="myconverter", forClass="mypackage.MyClass") public class MyConverter implements Converter { ... }
Note that this is equivalent to registering the component in the faces-config.xml using the following snippet.
<converter> <converter-id>myconverter</converter-id> <converter-for-class>mypackage.MyClass</converter-for-class> <converter-class>MyConverter</converter-class> </component>
MainPage