[jboss-user] [JBoss Tools] New message: "Re: seam generate entities for many-to-many relationships"

Benjamin Janssens do-not-reply at jboss.com
Tue Jan 26 05:13:07 EST 2010


User development,

A new message was posted in the thread "seam generate entities for many-to-many relationships":

http://community.jboss.org/message/522233#522233

Author  : Benjamin Janssens
Profile : http://community.jboss.org/people/Goschan

Message:
--------------------------------------------------------------
Hello,
yes the seam gen generates only two entity, but in the xhtml (supplier.xhtml in my case) view file, I have this :
 
<h:outputText value="There are no lkSupplierAddresses associated with this supplier."
                   rendered="#{empty supplierHome.lkSupplierAddresses}"/>
 
<rich:dataTable value="#{supplierHome.lkSupplierAddresses}"
                       var="_lkSupplierAddress"
                  rendered="#{not empty supplierHome.lkSupplierAddresses}"
                rowClasses="rvgRowOne,rvgRowTwo"
                        id="lkSupplierAddressesTable">
 
lkSupplierAddresses is my table with the two IDs as a primary key (suppId and addId), when I try to access this outputText, or dataTable I have this exception :
 
16:29:15,885 ERROR [viewhandler] Error Rendering View[/Supplier.xhtml]
javax.faces.FacesException: javax.el.PropertyNotFoundException: /Supplier.xhtml @66,77 rendered="#{empty supplierHome.lkSupplierAddresses}": Property 'lkSupplierAddresses' not found on type com.orderform.session.SupplierHome_$$_javassist_seam_11
 
So  there is a problem in the generation of the xhtml files.
 
Do you know is there is a fix for the generation files ftl ?
 
Thanks, Benjamin

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/522233#522233




More information about the jboss-user mailing list