users@javaserverfaces.java.net

Issue with ValueExpression

From: Anil Kumar Veeramalli <anil.v_at_frescoinformatics.com>
Date: Tue, 07 Jul 2009 19:41:18 +0530

Hi,

I am using ValueExpression with JSF like this.

 <%ValueExpression testExpression =
ExpressionFactory.newInstance().createValueExpression( " Test" , new
String().getClass()); %>
   <h:form>
          <h:commandLink
title="*<%=testExpression%>*">test</h:commandLink>
   </h:form>

 its working fine in glassfish but not in other apppserver (like
JBOSS,weblogic...).

can you suggest me the one which works on all the appservers.

One option I can think of is, convert this to Manged bean. I have lot of
code in my app like the above code. It difficult for me to convert
everything to managed bean.

Please suggest me on the same kind of ValueExpression which works with
all the appserver.

Thanks,
Anil