I have this situation that works perfect and I know that I shoud map a bean attribute to the value of the outputText and not to the method, but in this case this is necesary. So how can I avoid this problem?
<h:outputText value="#{bean.method(param)}" />
Error: Multiple annotations found at this line:
- Syntax error in EL
- Expression must be a value expression but is a method
My faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
version="2.2">
<application>
<locale-config>
<default-locale>es</default-locale>
<supported-locale>es</supported-locale>
<supported-locale>en</supported-locale>
</locale-config>
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
</application>
</faces-config>
I see in here that the problem should go away if i upgrade my EL resolver but how can I do this?
Im using Java EE with JDK1.8 with tomcat 8 and PrimeFaces
<jsf.version>2.2.13</jsf.version>
<primeFaces.version>6.0</primeFaces.version>
<java.version>1.8</java.version>