You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Ognjen Blagojevic <og...@etf.bg.ac.yu> on 2007/09/19 18:27:28 UTC
Problem with Tomcat
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:
org.apache.openjpa.enhance.com$test$MyEntity$pcsubclass@de04cd
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
Re: Problem with Tomcat
Posted by Ognjen Blagojevic <og...@etf.bg.ac.yu>.
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:
>
> org.apache.openjpa.enhance.com$test$MyEntity$pcsubclass@de04cd
> 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