This content has been marked as final.
Show 5 replies
-
1. Re: Implementing framework entity query in components.xml question, suggestion reqd
valatharv Jan 8, 2009 4:51 PM (in response to valatharv)Any suggestion on above issue, I tried various options but still getting exception....
"Property 'project' not found on type org.jboss.seam.framework.EntityQuery_$$_javassist_5"
Looks like mising some basic configuration. -
2. Re: Implementing framework entity query in components.xml question, suggestion reqd
nicolas.bielza Jan 8, 2009 5:33 PM (in response to valatharv)a) This is because you defined two components with the same name and precedence ! The name of a component is not related to its Java class name: when defining the component in components.xml, the name is defined in the
name
attribute, when defining the component in Java code, it is defined in the @Name annotation.b) Usually, I get this error message when I set
value="#{projectList}"
instead of
value="#{projectList.resultList}"
-
3. Re: Implementing framework entity query in components.xml question, suggestion reqd
valatharv Jan 8, 2009 6:27 PM (in response to valatharv)Thanks for replying...
For the sake of simplicity, I am just using a simple query in components.xml for Project entity, but I get this error.. where I am doing wrong, please help
-----------------------------------------
javax.el.PropertyNotFoundException: Property 'project' not found on type org.jboss.seam.framework.EntityQuery_$$_javassist_5
-----------------------------------------
Components.xml
--------------
Just added this...
<framework:entity-query name="projectList"
ejbql="select project from Project project" scope="conversation">
</framework:entity-query>
ProjectList.xhtml
-----------------
<rich:dataTable id="projectList"
var="project"
value="#{projectList.resultList}"
rendered="#{not empty projectList.resultList}">
<h:column>
<f:facet name="header">
<s:link styleClass="columnHeader"
value="Project Name #{projectList.order=='projectName asc' ? messages.down :
( projectList.order=='projectName desc' ? messages.up : '' )}">
<f:param name="order" value="#{projectList.order=='projectName
asc' ? 'projectName desc' : 'projectName asc'}"/>
</s:link>
</f:facet>
#{project.projectName}
</h:column>
.....
</rich:dataTable> -
4. Re: Implementing framework entity query in components.xml question, suggestion reqd
nicolas.bielza Jan 8, 2009 7:42 PM (in response to valatharv)Can you post the complete stacktrace ?
-
5. Re: Implementing framework entity query in components.xml question, suggestion reqd
valatharv Jan 8, 2009 10:28 PM (in response to valatharv)Thanks for your time Nicolas, I used ProjectList.java generated by seam(looks like it is required) and changed the component name in components.xml, it seems to be fine as of now.
Thanks