Yet another chapter in my battle against JSF. Now the subject is validation. I have a class like this:and I want to set that property from a set of AClass. So I create a method in my backing bean that creates that collection as an array of SelectItem:then a custom converter to deal with that array...All set, finally to the JSP: All this went well for another class where I used a selectManyCheckbox. Beautiful. But now it gives me a "value is not a valid option" for that property. The method getAsObject from my converter is being called and returning an instance of AClass as expected, but still...
Any suggestions? [ April 21, 2006: Message edited by: Henrique Sousa ]
Henrique Sousa<br />SCJP 1.4<br /> <br />All men die, not all men really live - Braveheart, 1995
Joined: Apr 29, 2004
Okay, I got a hint. Documentation does not say it is required to implement equals, but mine wasn't working correctly. Fixed equals() in AClass and everything works. My forehead is getting better now. Damn!