When you bind sth, like #{mybean.someInteger}

The property resolver resolves the type of someInteger property to an
integer, and later this is used to figure out the necessary converter to use
automatically, in this case it is numberconverter to convert the submitted
string value to an integer. This is same in other cases.

In order to override this process, write a converter and add it via
<f:converter tag or the converter attribute. So your converter will be
picked before jsf tries to identify a converter by type.

Cagatay

On Jan 17, 2008 12:10 AM, Yaron Spektor <[EMAIL PROTECTED]> wrote:

> Hi ,
> I was wondering about the conversion mechanism that is done
> automatically in jsf.
> When I bind a value to an input field, for example, how and where in the
> code does JSF realize which converter to setup ( Long or a String etc.)
> I see it is doing it, I know how to override it but I am interested to
> know the inside details of it.
>
> Thanks,
> Yaron
>
>

Reply via email to