Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
ig:dropDownList doesn't use Converter.getAsString()
posted

Hello,

I have the following use of ig:dropDownList:

                        <ig:dropDownList id="owner"
                                required="true"
                                value="#{assetController.asset.owner}"
                                converter="#{assetController.personConverter}"
                                dataSource = "#{assetController.allPeople}"/> 

I have Converter because my SelectItems looks like this: new SelectItem(person, person.getFullName()).

But ig:dropDownList doesn't call Converter.getAsString() method. After form's data submission is Converter.getAsObject() called but with fault because value of selected item doesn't correspond with expected object's identifier.

When I use standard h:selectOneMenu then everything works fine. 

Parents Reply Children
No Data