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.

Bug 244200 - Rename on HTML ids does not affect all occurences
Summary: Rename on HTML ids does not affect all occurences
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-30 13:13 UTC by muellermi
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
IDE log (651.03 KB, text/plain)
2014-04-30 13:14 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2014-04-30 13:13:58 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b70

                <h:selectOneMenu value="#{myBean.myProperty}">
                    <f:selectItems value="#{valueLists.myValues}" />
                    <f:ajax event="change" render="@this myText" />
                </h:selectOneMenu>
                <h:inputTextarea id="myText" />

- place move mouse pointer onto "myText"
- press ctrl-r (rename)
--> NetBeans opens the refactor rename dialog, requiering a "#" in front of the id (btw, why is this hash needed?)
- enter a #newName
--> NB does not rename the id on other occurences

                <h:selectOneMenu value="#{myBean.myProperty}">
                    <f:selectItems value="#{valueLists.myValues}" />
                    <f:ajax event="change" render="@this myText" />  ### here the old id myText remains, should be newName ###
                </h:selectOneMenu>
                <h:inputTextarea id="newName" />   ### here NB places the new name ###
Comment 1 muellermi 2014-04-30 13:14:10 UTC
Created attachment 147024 [details]
IDE log
Comment 2 Vladimir Riha 2014-05-02 07:47:35 UTC
Reproducible, but I think this is more of an enhancement. Reassigning to JSF




Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1
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.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 Martin Fousek 2014-05-23 05:50:24 UTC
I agree that it's likely enhancement, we don't have implemented refactoring for JSF from HTML editor.
Comment 4 Martin Balin 2016-07-07 08:55:52 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss