Oh, sorry, my mistake. dataTable can't iterate through set. Not an openjpa issue.

Ognjen


Ognjen Blagojevic wrote:
Hi all,

When I use openjpa with Tomcat 6.0.13 (without -javaagent option), i experience strange behavior.

I have set of entities com.test.MyEntity, that I iterate using JSF h:dataTable tags.

<h:dataTable value="#{myBean.myEntityCollection}" var="row">
    <h:column>
        <h:outputText value="#{row}"/><br/>
        <h:outputText value="#{row.class.name}"/>
    <h:column>
</h:dataTable>

Interesting, two outputText tags give different results:

[EMAIL PROTECTED]
org.apache.openjpa.util.java$util$HashSet$proxy

Can anyone explain this? It causes me problems because when I try to access property in MyEntity,

        <h:outputText value="#{row.myProperty}"/><br/>

exception is thrown:

org.apache.jasper.el.JspPropertyNotFoundException: /page.jsp(115,14) '#{row.myProperty}' Property 'myProperty' not found on type org.apache.openjpa.util.java$util$HashSet$proxy


Regards,
Ognjen

Reply via email to