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 - cmd-shift-i(fix namespaces) removes the namespace even though it is used as function calls
Summary: cmd-shift-i(fix namespaces) removes the namespace even though it is used as f...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-15 08:28 UTC by Martin Fousek
Modified: 2014-08-15 08:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".