This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE Dev (Build 201407080001) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.8.0_05 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.5-b02 Given, a JSF page and a named bean "AdminTask" <f:ajax render="@this" listener="#{adminTask.changeListener}"/> now, in AdminTask, rename changeListerner to something else, e.g. "valueChangeListener" expected: <f:ajax render="@this" listener="#{adminTask.valueChangeListener}"/> but its still unchanged Renaming methods will affect the JSF page in other cases.
I cannot reproduce it (JSF 2.2), having bean like @Named(value = "myBean") @Dependent public class MyBean { public MyBean() {} public void foo(){} } if I use the foo() in the listener attribute and then rename/refactor the method from the bean class, it is changed in the JSF page as well. However () is appended to the EL which I'm not sure is correct. Does it happen in every project? Product Version: NetBeans IDE Dev (Build 201407090001) Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Linux version 3.13.0-30-generic running on i386; UTF-8; en_US (nb)
(In reply to muellermi from comment #0) > <f:ajax render="@this" listener="#{adminTask.changeListener}"/> > now, in AdminTask, rename changeListerner to something else, e.g. > "valueChangeListener" > expected: > <f:ajax render="@this" listener="#{adminTask.valueChangeListener}"/> > but its still unchanged > Renaming methods will affect the JSF page in other cases. I'm able to reproduce that when the AdminTask accepts a FacesEvent like: public void changeListener(AjaxBehaviorEvent event) {} muellermi, please is that your case? (In reply to Vladimir Riha from comment #1) > However () is appended to the EL which I'm not sure is correct. Actually that can bring issues in the project when somebody uses the Event subclass parameter as mentioned above. Vlado please can you raise an issue for that? The () shouldn't be appended there. Thanks a lot.
Sure, thanks. Issue 245540
(In reply to Martin Fousek from comment #2) > I'm able to reproduce that when the AdminTask accepts a FacesEvent like: > public void changeListener(AjaxBehaviorEvent event) {} > muellermi, please is that your case? Confirmed by reporter over email.
Should be fixed in web-main #ed451447a268.
Integrated into 'main-silver', will be available in build *201407120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ed451447a268 User: Martin Fousek <marfous@netbeans.org> Log: #245489 - [801cat] ajax listener rename failure