myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: Re: Workaround for createValueExpression
Date Wed, 28 Mar 2007 18:35:53 GMT
Ok.  So you're really trying to convert JSF 1.2 code into JSF 1.1 code.

Take a look at the JSF 1.2 api docs and do a "reverse-deprecation" --
createMethodBinding

http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/javax/faces/application/Application.html#createMethodBinding(java.lang.String,%20java.lang.Class[])


On 3/28/07, urswagner@bluemail.ch <urswagner@bluemail.ch> wrote:
>
> Sorry I get a compilation error
>
>           cannot find symbol
>     [javac] symbol  : method getExpressionFactory()
>     [javac] location: class javax.faces.application.Application
>
> ----Urspr√ľngliche Nachricht----
> Von: mkienenb@gmail.com
> Datum: 28.03.2007 19:47
> An: "MyFaces Discussion"<users@myfaces.apache.org>,
> <urswagner@bluemail.ch>
> Betreff: Re: Workaround for createValueExpression
>
> I don't understand the question.
> What's wrong with the code?
>
> On 3/28/07, urswagner@bluemail.ch <urswagner@bluemail.ch> wrote:
> >
> > What workaround need I to use for this code
> >
> >       import javax.el.ValueExpression;
> >
> >        FacesContext context = FacesContext.getCurrentInstance();
> >         ValueExpression vex = context.getApplication().
> > getExpressionFactory().createValueExpression(context.
> getELContext(),
> > "#{paramValues.mapSelectedItems}", String[].class);
> >
> >
> > Thanks
> >
>
>
>
>

Mime
View raw message