[jboss-user] [JBoss Seam] - Seam Gen template error?
damianharvey
do-not-reply at jboss.com
Fri Feb 16 05:22:52 EST 2007
(This is a bit pedantic but thought it belonged here anyway)
If you have a ManyToOne association that goes more than one level deep eg. A PERSON associated with a COMPANY associated with a COUNTRY then the SeamGen view template has a small error on line 83 of the view.xhtml.ftl
It is currently:
${'#'}{${parentName}.${parentProperty.name}.${parentPojo.identifierProperty.name}}
but should be:
${'#'}{${parentName}.${parentProperty.name}.${parentParentPojo.identifierProperty.name}}
It results in an error in the generated View page as the property is set as such:
<h:column>
| <f:facet name="header">countryCode countryId</f:facet>
| #{company.countryCode.companyId} <!--is this the problem -->
| </h:column>
|
Cheers,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017524#4017524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017524
More information about the jboss-user
mailing list