Andrew are you sure Null values are not converted/validated?
I always protect my "getAsString" method from null values. That is because
most of the times, I do not initialize the value of <h:selectOneMenu> in the
bean constructor.
In these cases the "getAsString" method is sent a "null" object.

Anyway, Bansi, did you check that all validations are passed?
Usually, there is some problem in validation phase that causes the
conversion to be skipped.
Did you put <h:messages> tag somewhere in your form to make sure all
validations passed?

Guy.


-----Original Message-----
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 25, 2008 2:46 AM
To: MyFaces Discussion
Subject: Re: JSF/MyFaces Converter getAsObject() method doesnt get called

Is the value null? Null values are never validated or converted

On Thu, Apr 24, 2008 at 5:35 PM, bansi <[EMAIL PROTECTED]> wrote:
>
>  I have two h:selectManyList boxes and a custom converter
>  On form load, right box gets populated with some values and has converter
>  attached to it , the getAsString() method is invoked
>
>  When i hit submit button the page it goes directly to the action method
>  without invoking converter
>
>
>  Wondering why its bypassing Validation/Conversion phase and directly
going
>  to Invoke Application phase
>
>  I verified that i dont have immediate="true" attribute attach to
>  h:selectManyList component and their is no any a4j events i.e. ajax4jsf
also
>  . So what exactly is causing the problem
>
>  I also set immediate="false" for all the components on page
>
>  I am having this problem for couple of days i will appreciate any help.
>
>
>  --
>  View this message in context:
http://www.nabble.com/JSF-MyFaces-Converter-getAsObject%28%29-method-doesnt-
get-called-tp16860830p16860830.html
>  Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to