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 246433 - No code completion for xmlns:fn="http://java.sun.com/jsp/jstl/functions" namespace in facelets page
Summary: No code completion for xmlns:fn="http://java.sun.com/jsp/jstl/functions" name...
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-08-13 12:20 UTC by pggeldenhuys
Modified: 2016-07-07 08:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (412.23 KB, text/plain)
2014-08-13 12:20 UTC, pggeldenhuys
Details
Screenshot (33.17 KB, image/png)
2014-08-13 12:23 UTC, pggeldenhuys
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pggeldenhuys 2014-08-13 12:20:23 UTC
Product Version = NetBeans IDE Dev (Build 201408120001)
Operating System = Mac OS X version 10.9.4 running on x86_64
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b70

Maven based, jsf web project with template, issue happens on ui:composition page i.e:

<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: -> ctrl - space gives popup with "No suggestions"

cmd-shift-i removes the namespace import for fn completely:

<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"
                template="/template/flow.xhtml">
Comment 1 pggeldenhuys 2014-08-13 12:20:40 UTC
Created attachment 148681 [details]
IDE log
Comment 2 pggeldenhuys 2014-08-13 12:23:08 UTC
Created attachment 148682 [details]
Screenshot
Comment 3 pggeldenhuys 2014-08-13 12:32:40 UTC
Also no code completion for primefaces functions or omnifaces functions:

xmlns:p="http://primefaces.org/ui"
xmlns:of="http://omnifaces.org/functions"

cmd-shift-i removes the of namespace completely, the primefaces one is safe if there are <p: components on the page, otherwise also gets removed even if function is present
Comment 4 Martin Fousek 2014-08-13 13:47:59 UTC
Decreasing priority and keeping for later evaluation. I'm going to go through described steps and raise issue for particular issues. It looks to me like 3 bugs mixed into once. Anyway, thanks for your report.
Comment 5 Martin Fousek 2014-08-15 08:24:06 UTC
Ok, I understand your point, reproduced code completion doesn't work for any functions inside Facelets. The second part of the issue (fix namespace action), I'm going to separate to another bug.

Steps to reproduce are easy:
1, add any namespace which holds functions into the facelets NS definition:
i.e. xmlns:fn="http://java.sun.com/jsp/jstl/functions"
2, invoke CC inside #{|} or #{fn:|}

Thanks for the report.
Comment 6 Martin Fousek 2014-08-15 08:29:42 UTC
Second part of the issue reported as the bug #246471.
Comment 7 Martin Balin 2016-07-07 08:55:43 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