2 Replies Latest reply on Dec 12, 2006 3:58 PM by bytor99999

    @Embeddable Object and JSF referencing in a Form

      So I have a simple example where I have an Embedded object. So I have a Location class that has an Address object. The Address object is annotated with @Embedded. The Address class has @Embeddable. In my form I have an InputText with

      <h:inputText value="#{location.address.city}"
      id="cityText"/>

      This didn't work, and I got a conversion JSF error. I moved the attributes of Address to the Location Object and then it all worked. However, I like the idea of the seperate Address class rather than the attributes being in the Location object. While there is only four attributes in Address, if I ever got to a bigger application, it would be useful.

      Any ideas why my first example with @Embedded/@Embeddible did not work?