1 Reply Latest reply on Jan 22, 2008 2:20 PM by Benjamin Graf

    Problem with h:selectManyListbox and hibernate entities

    Benjamin Graf Novice

      Hi,

      I'm not sure if that topic is right here. Maybe first a short discription of my problem. I try to bind an entity with several onetomany bags to an h:selectManyListbox (inc. Converter) everything works while only one item is selected. if selected two or more I got an java.lang.ArrayStoreException. I recognized that hibernate produces a persistencebag with two different objecttypes x and x_$$_javassist_. The JSF Component wants the selected items to be put in an array of x_$$_javassist_ type. That's why the operation fails, but why??? I didn't get the complexity of this problem solved. Maybe someone of you can help me!

      THX