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 8.0.1 (Build 201408142300) Operating System = Windows 8 version 6.2 running on amd64 Java; VM; Vendor = 1.8.0_11 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.11-b03 Given a JSF page with code like this: <footer> © Michael Müller | <h:outputLink value="http://blog.mueller-bruehl.de"> Michael's Blog </h:outputLink> | <h:link value="About" outcome="/welcome.xhtml"/> </footer> Now, the user marks some text, in this example the text between the footer tags and chooses the function to be implemented: "Extract include" NetBeans queries the include name (in example: "/common/footer.xhtml") and replace the code by <footer> <ui:include src="/common/footer.xhtml"/> </footer> NetBeans creates a new file, a ui:composition, with the given name ("/common/footer.xhtml") and places the move content into: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html [<!ENTITY copy "©">]> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> © Michael Müller | <h:outputLink value="http://blog.mueller-bruehl.de"> Michael's Blog </h:outputLink> | <h:link value="About" outcome="/welcome.xhtml"/> </ui:composition> Bonus: as in this example, an HTML entity which is used in the snipped to move, is declared in the DOCTYPE.
Created attachment 148981 [details] IDE log
Thanks for good tip for enhancement. Targeting to next for now.
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