Well, after trying out a lot I'd say that Stateless and Stateful Session Beans just
don't work as Converters. Don't ask me why...
But I made the JavaBean (posted above) work by adding Serializable... DOH!!!
In fact, what makes me wonder: JSF ALWAYS recreates the Converter (I found this out by
logging the converter's hashcode, and it's always a new one). Maybe that's why
EJBs didn't work, because JSf wanted to invoke the constructor of the interface
(PersonConverter), not of the class (PersonConverterBean). But then it'd be very weird
that the Converters need to be Serializable. Why serializing when omitting deserialization
and constructing instead?
After all this I'm 20 years older, very confused, but happy that it finally works ;).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961280#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...