Community
Participate
Working Groups
Build Identifier: Build id: 20100603-0907 The EL validator in Helios RC3 is still locked to the olde one, not the EL 2.2 which supports method calls with parameters.I can´t find an option to tell the editor to validade against EL 2.2. Look at this example. The editor says that the method must have the signature "String method()", it´s wrong! My method accepts a parameter. <h:commandButton value="my action" action="#{testManagedBean.setName('another name')}"/> Method must have signature "String method()" but has signature "void method(String)" I have in my web.xml <context-param> <param-name>com.sun.faces.expressionFactory</param-name> <param-value>com.sun.el.ExpressionFactoryImpl</param-value> </context-param> One of the coolest feature of JSF 2 with EL 2.2 is the possibility to pass parameters to methods in the managedBean via EL. Reproducible: Always Steps to Reproduce: 1.create an JSF 2 project with EL 2.2 enabled in web.xml 2.in web page editor, in an action attribute, try to call a method in the managedBean which suppport parameters. Try to set a parameter. 3. eclipse invalidade de sentence with the message: Method must have signature "String method()" but has signature "void method(String)"
We will look to address this in future versions. For now, if the validations are a nuisance, you can go suppress the errors by going to Windows->Preferences->Web->JavaServer Faces Tools->Validation->Type Assignment Problems and mark ignore for "Method Expression Signature Incompatibility".
*** This bug has been marked as a duplicate of bug 352491 ***