2 Replies Latest reply on Apr 6, 2007 10:30 AM by fhh

    Expression Language in Java; simple, but impossible?

    beligum

      Hi all,

      I've been searching for a solution to this simple issue for over an hour now:
      How do I dynamically interpret an EL-string in Java-code?

      I found this:

      FacesContext context=FacesContext.getCurrentInstance();
      ValueExpression vex=context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(),"#{paramValues.mapSelectedItems}", String[].class);
      String[] itemx=(String[])vex.getValue(context.getELContext());
      


      But it doesn't work in Seam (1.2.1).

      Any suggestions?