selectOneListbox problem after upgrading to jsf 1.2

Hi all,

I'm currently converting a project from jsf 1.1 to jsf 1.2 on tomcat 6. Unfortunately two selectOneListboxes that use a converter-for-class do not work anymore now.

I checked in my converter and it really gets called upon changing the selectbox just like it should. So far so good. However, previously this resulted in calling a setter method in my session bean, but now nothing happens. Instead in a <f:messages> tag I see "not a correct value".

Can anyone help me out here? Maybe someone else has the same problem?

Thanks a lot!

Steven

[586 byte] By [tombatorea] at [2007-11-27 10:49:55]
# 1

<h:selectOneListbox immediate="true" rendered="#{webSession.loggedIn}" id="cmbProduct" size="1" value="#{webSession.currentProduct}" onchange="submit()">

<f:selectItems value="#{webSession.availableProducts}"/>

</h:selectOneListbox>

I should also note that availableProducts is a list of SelectItem<Product, String> and currentProduct is a Product.

Eclipse hereby warns me that value="#{webSession.currentProduct}" does not evaluate to the expected type (I don't know if this has anything to do with it though).

Message was edited by:

tombatore

tombatorea at 2007-7-29 11:22:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

It would be useful to know the exact version of JSF. JSF 1.2 is a specification version. We need to know which implementation and the version of said implementation.

rlubkea at 2007-7-29 11:22:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

It's the JSF 1.2 RI , version 1.2_04 P02 (23 May 2007)

I downloaded it here: https://javaserverfaces.dev.java.net/

tombatorea at 2007-7-29 11:22:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...