7 Replies Latest reply on Aug 10, 2008 6:43 AM by vanyatka

    Using variables in Expressions

    vanyatka

      Hi,

      I'd like to use a business context variable in the EL block, like this:

      <decision name="my node" expression="#{filteredBannersCount}">...
      


      This variable is declared in SLSB (via Seam) like this:

      @Out(scope = ScopeType.BUSINESS_PROCESS, required = false)
       private String filteredBannersCount;


      However, it seems EL should point to methods only and not variables.
      I get the following error trying to use it:

      13:28:46,887 FATAL [application] javax.ejb.EJBTransactionRolledbackException: Identity 'filteredBannersCount' does not reference a MethodExpression instance, returned type: java.lang.String
      javax.faces.el.EvaluationException: javax.ejb.EJBTransactionRolledbackException: Identity 'filteredBannersCount' does not reference a MethodExpression instance, returned type: java.lang.String
      


      Can we use business context vars in expressions?

      Thanks,