Fixing build.

This commit is contained in:
Jeremy Grelle
2008-02-21 20:16:03 +00:00
parent f76fb0b39f
commit 631f0667ea
4 changed files with 117 additions and 2 deletions

View File

@@ -32,7 +32,14 @@ public class LegacyJSFELExpressionParser extends ELExpressionParser {
}
public LegacyJSFELExpressionParser() {
this(ExpressionFactory.newInstance());
this(getDefaultExpressionFactory());
}
private static ExpressionFactory getDefaultExpressionFactory() {
if (!System.getProperties().containsKey("javax.el.ExpressionFactory")) {
System.setProperty("javax.el.ExpressionFactory", "org.jboss.el.ExpressionFactoryImpl");
}
return ExpressionFactory.newInstance();
}
private static class RequestContextELContextFactory implements ELContextFactory {