JSF - Converters

> Procedural Languages > Java > JavaServer Faces (JSF)

1 - About

Converters are used to convert data that is received from the input components.

JSF converters convert Java objects to strings and back.

Advertising

3 - @FacesConverter

The @FacesConverter annotation was introduced in JSF 2.0 and it serves to mark the annotated class as a JSF converter.

You can create an inner class annotated with the @FacesConverter annotation to implement a converter.

4 - Documentation / Reference