Here’s an important tidbit… JSF does not give any default validators for your data if you use a custom converter. If you’re getting a ValidationError exception, overriding equals and hashcode methods might be a good idea. For more, read on…
Here was my code:
1 2 3 4 5 6
I was seeing a lot of this:
It turns out that when you’re using a custom converter, which I am (entityConverter), there are no default validators provided by JSF.
This means that you are required to prove to JSF that the objects that you’re retrieving from the f:selectItems collection will fit into the h:selectManyCheckbox value you have specified. In order to help JSF determine the compatibility, you must provide a meaningful hashcode and equals method for your