1 Reply Latest reply on May 12, 2009 4:57 PM by niox.nikospara.yahoo.com

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

    eakom

      Hi,


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


      Here is my Bean:


      @Name("requirementList")
      public class RequirementList extends EntityQuery<Requirement> {
           @RequestParameter
           private Long specDocId;
           
           public RequirementList () {
                String EJBQL = "select requirement from Requirement requirement  where requirement.specDoc.id="+specDocId;
                setEjbql(EJBQL);
                setMaxResults(25);
           }
       
           
           public void setSpecDocId(Long specDocId){
                this.specDocId=specDocId;
           }
           public Long getSpecDocId(){
                return specDocId;
           }
      }



      the error is: Could not instantiate Seam component: requirementList


      Can you help me?


      Thanks.