Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315896 - [JSF2.0] EL 2.2 method call with parameters is not recognized by the editor, which says the method must implement method().
Summary: [JSF2.0] EL 2.2 method call with parameters is not recognized by the editor, ...
Status: CLOSED DUPLICATE of bug 352491
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major with 1 vote (vote)
Target Milestone: 3.4.0 M6   Edit
Assignee: Ian Trimble CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-05 23:18 EDT by Flávio CLA
Modified: 2012-01-06 14:21 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Flávio CLA 2010-06-05 23:18:54 EDT
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)"
Comment 1 Cameron Bateman CLA 2010-06-07 16:14:29 EDT
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".
Comment 2 Ian Trimble CLA 2012-01-06 14:21:41 EST

*** This bug has been marked as a duplicate of bug 352491 ***