I was using entity-query, now I need to make some extensions to EntityQuery 
provided by Seam. I assumed that using the class atribute for the 
framework:entity-query I can define a subclass of the EntityQuery. Is my 
assumption correct?




  | public class MyEntityQuery extends org.jboss.seam.framework.EntityQuery {
  | ...some stuff
  | }
  | 

components.xml


  | <framework:entity-query name="userListing" ejbql="select u from User u" 
auto-create="true" max-results="5" scope="SESSION" 
class="com.app.MyEntityQuery"/>
  | 
  | 

Above code does not work. It seems that Seam EntityQuery is used even if I 
declare a class attribute.

One of the errors I got when adding new properties to the extended EntityQuery:

  | Caused by: javax.faces.el.PropertyNotFoundException: /admin/userList.xhtml 
@130,105 value="#{userListing.currentPage}": Bea
  | n: org.jboss.seam.framework.EntityQuery_$$_javassist_1, property: 
currentPage
  |         at 
com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
  |         at javax.faces.component.UIOutput.getValue(UIOutput.java:80)
  |         at javax.faces.component.UIInput.getValue(UIInput.java:88)
  |         at 
org.apache.myfaces.shared_impl.renderkit.RendererUtils.getValue(RendererUtils.java:278)
  |         ... 59 more
  | 


do I am misunderstanding the use of such class attribute? or is it a bug?

Any ideas?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044159#4044159

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044159
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to