Hi All 

Did you find an actual solution to the null value problem. I have hit
the problem, and I am about to embark on creating a custom converter to
deal with null values, but I am assuming that people have dealt with
this problem before. 

To recap, 

I have this jsf code:

<h:selectManyListbox id="housetypeSelect"
value="#{NewContact.houseTypesSelect}" size="5" >
                        <f:selectItems id="housetypeSelectItem"
value="#{NewContact.housetypes}" />
</h:selectManyListbox>

Which works perfectly when a item or more is selected, however if
nothing is selected then a conversion error occurs, for the component. 

I presume this is a null value conversion error. 

Thanks for any help, 

James Salt


-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: 06 May 2005 16:31
To: MyFaces Discussion; Avaneesh Arora
Subject: Re: selectManyListbox Conversion error

Does your converter handle the null case?
Are there more in-depth errors in the logs?  stack traces?

On 5/6/05, Avaneesh Arora <[EMAIL PROTECTED]> wrote:
> 
> In my application, I have a selecteManyListbox, but the selections are
> entirely optional.
> I have set required="false" in the component, still I see the message:
> 
> Conversion Error setting value '' for '#{ Page1.selections}'.
> 
> The application works just fine if I select one or more options, so I
do not
> think there is any problem in the code or the setup.
> 
> How do I skip any conversion errors, so that I can proceed without any
> selections?

Reply via email to