I am not sure about this and realy like to hear Gavins opinion on my response:
These attributes occur on component instance variables or propertyThis is taken from the manual for bijection annotations and I take it that bijection annotations only work for Seam components and not for regular types like Map or String?
So I guess you have to wrap your datamap with some get and set methods and access it in your jsf like this
I am also not sure if the @Factory annotation would be called since I though the Factory is only used when the variable referenced is null. With your rolesMap being initialized with an HashMap object I'd think it would never get called unless you'd set it null somwhere else?
But as I mentioned this is me guessing before heaving my first coffee. ;) Somebody else with more knowledge about Seam internals will provide the proper answers I'd say.
Factory did get called and rolesMap is in conversational context. It displays verything fine but when I select smth and then submit, then it says this error.
Interesting, then I got a whole lot about Seam wrong and hope even more that Gavin or some other Seam guru is going to enlighten us. :(
But why doesn`t it like the value options?
Maybe I Can`t put value as Object n?
I don't think the exception is anything at all to do with Seam.
Looks like a pure JSF problem. I don't think a Role is a valid value for a SelectItem.
What is the stacktrace?
selectItems works for me when I use Map<String, String>. Haven't tried to put others things then String into it yet since usualy a selectItem only accepts Strings as value.
btw: I had coffee now and no need to point my silly nose on my obvious errors of my first post! Please just ignore it. :/
No stack trace, just h: message that it`s not a valid value.
Role is an entity bean.