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 246471

Summary: cmd-shift-i(fix namespaces) removes the namespace even though it is used as function calls
Product: javaee Reporter: Martin Fousek <marfous>
Component: JSF EditorAssignee: Martin Fousek <marfous>
Status: NEW ---    
Severity: normal CC: pggeldenhuys
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Martin Fousek 2014-08-15 08:28:59 UTC
Reported originally into the issue #246433. I'm spiting that to two parts.

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                template="/template/flow.xhtml">

#{fn:length("mystring")}
cmd-shift-i removes the namespace import for fn completely:

Reproducible in the NetBeans IDE Dev (Build 20140815-55ddfbb2f97a) when the "Remove unused namespaces is checked".