javax.faces.el.PropertyNotFoundException: Bean:
org.hibernate.collection.PersistentSet, property: id
----------------------------------------------------------------------------------------------------
Key: MYFACES-733
URL: http://issues.apache.org/jira/browse/MYFACES-733
Project: MyFaces
Type: Bug
Versions: 1.1.1
Environment: JDK 1.5, Tomcat 5.5
Reporter: Thijs Terlouw
Priority: Blocker
[SITUATION]
I have a UserBean that extends GroupBean
I have a User extends Entity and Entity extends Vertex and Vertex extends
Persistent and Persistent has a private Serializable id with getters and
setters.
in my edituser.jsp I do something like this:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<h:dataTable id="groupsList" value="#{userBean.directGroups}"
var="group" headerClass="tableheader" columnClasses="tablecell">
<h:column>
<f:facet name="header">
<h:outputText value="Directe Groep(en)" />
</f:facet>
<h:commandLink action="#{userBean.editGroup}">
<f:param name="groupId" value="#{group.id}"/>
<h:outputText value="#{group.label}" />
</h:commandLink>
</h:column>
</h:dataTable>
This works with 1.0.9, but fails with 1.1.1 (all else remaining the same).
[ERROR]
02:35:46,390 ERROR [jsp]:704 - Servlet.service() for servlet jsp threw exception
javax.faces.el.PropertyNotFoundException: Bean:
org.hibernate.collection.PersistentSet, property: id
at
org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:445)
at
org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(PropertyResolverImpl.java:416)
at
org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:379)
at
org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:71)
at
org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
....
[PROBLEM]
the problem seems to be that the PropertyResolverImpl doesnt resolve the id (or
name when i comment out that id line) properties, because it thinks it is
talking to a PersistentSet, instead of an ELEMENT from that PersistentSet. When
I recompile using version 1.0.9 everything works perfectly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira