myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Converter Problem - Validation Error
Date Tue, 11 Mar 2008 07:39:22 GMT

Thanks for response - you're right, one of he equals methods are invalid
(always returned false). Why should be my solution complicated - these
classes are hibernate pojos!


-----Ursprüngliche Nachricht-----
Von: Michael Kurz [] 
Gesendet: Montag, 10. März 2008 21:21
An: MyFaces Discussion
Betreff: Re: Converter Problem - Validation Error schrieb:
> Component ID: subViewPlanning:fPlanningCalcualte:planningDriver
> Severity: ERROR
> Message: subViewPlanning:fPlanningCalcualte:planningDriver: 
> Validierungsfehler: Wert ist keine gültige Auswahl

Once again: according to the error message it seems that the value in 
the backing bean is not equal to the value of any item in the selection 
list. Did you test your converter to check if your home-grown 
serialization and equals/hashCode really works? An expression like the 
following should always return true for your converter to work properly:


Your solution seems to be quite complicated but on the other hand I 
don't know "how equal" your object must be (maybe it is enough to use 
the id of the person?).


View raw message