3 Replies Latest reply on Oct 20, 2009 10:02 PM by valatharv

    EntityQuery with dynamic EJBQL based on request parameters.

    trouby

      Hello,


      I would like to use EntityQuery with an EJBQL that is dynamically created based on Request Parameters,


      Meaning, that if a request parameter is specified, I would like to add some JOINs and INs to the EJBQL,



      The problem that in Seam ver 2.1.1 and above the only way I could set the EJBQL was via a @PostConstruct or via the constructor of the class that inherits from EntityQuery, at that time, the request parameters are not attached to the seam component,



      Is there a way to invoke 'setEjbql' in a later phase where the request parameters are already available?




      Many thanks,



      Asaf.