As the title states, I'm having issues rendering static values via EL 3 in JSF.
There's a similar issue like mine but it's in JSP and there was a workaround (see this Access static property or method in JSP via EL 3.0 (JEE7; Tomcat 8) )
The issue is nothing is being rendered when I use something as simple as this in any of my .xhtml files
#{Boolean.TRUE}
Although this site https://java.net/projects/el-spec/pages/StaticField says the following would work.
#{T(java.lang.Boolean).TRUE}
It also failed with an error similar to
javax.el.ELException: Function 'T' not found
I've gone ahead and tried the workaround that was mentioned in Access static property or method in JSP via EL 3.0 (JEE7; Tomcat 8). The workaround, which worked for JSP guys, is to replace the jsp-api.jar with javax.servlet.jsp-api-2.3.2-b01.jar in their Tomcat lib. This DIDN'T work for me either :(
What does work for me is the standalone implementation, like so
ELProcessor elp = new ELProcessor(); Object ret = elp.eval("Boolean.FALSE"); getLog().info("Output Value: " + ret);
And I do get the correct output like so
2015-10-07 17:38:13 INFO WelcomeAction:38 - Output Value: false
I've tried with both true and false value and they worked fine. Not sure if this info will help, but I'm using spring 4.1.1 with webflow 2.4.1. I've also tried on two different tomcat instances 8.0.14 and 8.0.27 and neither worked.
There's no way that I'm the only one dealing with this. I have yet to find a bug report regarding this, although one was reported and solved for JSP https://java.net/jira/browse/GLASSFISH-20778
Would really appreciate some help right about meow. Thanks in advance. Aloha!