1 Reply Latest reply on May 12, 2009 4:57 PM by Nikos Paraskevopoulos

    May I use @RequestParameter in a class tha extends from  EntityQuery?

    akram elloumi Newbie


      I'm using EntityQuery to show the records of a table: the WHERE clause must use a paremeter annotated @RequestParameter.

      Here is my Bean:

      public class RequirementList extends EntityQuery<Requirement> {
           private Long specDocId;
           public RequirementList () {
                String EJBQL = "select requirement from Requirement requirement  where requirement.specDoc.id="+specDocId;
           public void setSpecDocId(Long specDocId){
           public Long getSpecDocId(){
                return specDocId;

      the error is: Could not instantiate Seam component: requirementList

      Can you help me?