Hi Andrew,
hmm, looks like you are right. I've implemented this thing now with an
unique id number each ArticleGroup has. Because I get the ArticleGroup
from a Hibernate persistence layer I also couldn't use the object itself.
Thanks for your help!
Cheers,
Michael
Andrew Robinson schrieb:
Do you have an equals method implemented on ArticleGroup? Since the
values are converted, reference equals will always return false.
convertedValueFromComponent.equals(valueFromSelectItemValue)
must evaluate to true for one of the select items
On 6/13/07, Michael Obster <[EMAIL PROTECTED]> wrote:
Hi Andrew and list,
I've written a converter which converts ArticleGroup into a string and
backwards. The ArticleGroup has 3 attribute id(long),
description(String) and active(boolean). Converting in both directions
are running. The resulting string looks like "1;ASAP PC;true".
Using Strings in the SelectItem works, but when I use ArticcleGroup as
object, I'm getting a validation error: value is not valid option.
Can you tell me what's wrong, because strings are not as beautiful as
using the objects in a more direct way.
Cheers,
Michael