[jboss-user] [JBoss Seam] - @Embeddable Object and JSF referencing in a Form
bytor99999
do-not-reply at jboss.com
Mon Dec 11 20:21:48 EST 2006
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?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992939#3992939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992939
More information about the jboss-user
mailing list