Skip to main content

Posts

Showing posts from September, 2012

Converters in JSF 2

Converters in JSF2 are used to easily convert a value from one data type to other. The following inbuilt converters are available in JSF2.
Converter NameConverter ClassByte Converterjavax.faces.convert.ByteConverterShort Converterjavax.faces.convert.ShortConverterCharacter Converterjavax.faces.convert.CharacterConverterBoolean Converterjavax.faces.convert.BooleanConverterInteger Converterjavax.faces.convert.IntegerConverterFloat Converterjavax.faces.convert.FloatConverterDouble Converterjavax.faces.convert.DoubleConverterLong Converterjavax.faces.convert.LongConverterBig Integer Converterjavax.faces.convert.BigIntegerConverterBig Decimal Converterjavax.faces.convert.BigDecimalConverterDate Time Converterjavax.faces.convert.DateTimeConverterNumber Converterjavax.faces.convert.NumberConverterEnum Converterjavax.faces.convert.EnumConverter
 The JSF2 also allow developers to create a custom converter for their own purpose. The following rules are very important because almost all the dev…