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 243617 - NB 8.0: Code Completion does not work on JSF page
Summary: NB 8.0: Code Completion does not work on JSF page
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 4 votes (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 06:54 UTC by IKluboff
Modified: 2016-07-07 08:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NB 8.0: Code Completion does not work on JSF page (494.92 KB, image/jpeg)
2014-04-07 06:54 UTC, IKluboff
Details
NB messages.log (28.22 KB, application/octet-stream)
2014-04-11 09:59 UTC, IKluboff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description IKluboff 2014-04-07 06:54:45 UTC
Created attachment 146596 [details]
NB 8.0: Code Completion does not work on JSF page

Code Completion does not work on JSF page for jsf tags and attributes. Seems like jsf editor cannot find jsf namespaces ('xmlns:h="http://xmlns.jcp.org/jsf/html"' or 'xmlns:h="http://java.sun.com/jsf/html"' and another). All I can see in Code Completion is angular.js atributes.

JSF version 2.2.0, Java EE 7.0, NetBeans 8.0.
Comment 1 Martin Fousek 2014-04-11 07:55:58 UTC
Thanks for reporting. Obviously I'm not able to reproduce your issue, it would be definitely P1 if this would happen regularly. So that should be issue specific for your environment or project.

Please aren't you able to share your project with me? I understand that it's not often possible. In that case please could you attach at least your messages.log file into this issue?
http://wiki.netbeans.org/FaqLogMessagesFile

Then we will see, whether I'll be able to collect more necessary information from it. Thanks a lot.
Comment 2 IKluboff 2014-04-11 09:59:40 UTC
Created attachment 146698 [details]
NB messages.log

Sorry, but I can't add my project. But I added NetBeans log files as you wish.
Comment 3 IKluboff 2014-04-11 10:03:15 UTC
If I create a new web project, code completion works fine in it.
Comment 4 Martin Fousek 2014-04-11 12:17:14 UTC
(In reply to IKluboff from comment #2)
> Created attachment 146698 [details]
> NB messages.log
> 
> Sorry, but I can't add my project. But I added NetBeans log files as you
> wish.

Nevermind, the log files will be probably enough. It looks that you don't have setup any sources in your "qms-web" project. See in the project customizer -> Sources -> Source folder. Is this desired?

According to your screenshot it looks like you didn't created your project within NetBeans but rather you imported it somehow? Could you let me know the way you used? I guess so because your screenshot shows folders main/src, main/webapp which should be probably mapped as source folder and document web root.
Comment 5 Lynx6 2014-04-29 14:59:54 UTC
I have this problem, code completion doesnt work with xhtml pages in JAR. Since angularjs completion was implemented this option doesnt works anymore.
Comment 6 Martin Fousek 2014-05-23 05:39:52 UTC
(In reply to Lynx6 from comment #5)
> I have this problem, code completion doesnt work with xhtml pages in JAR.
> Since angularjs completion was implemented this option doesnt works anymore.

Please could you attach more details like the messages.log or ideally testing project etc.? Thanks in advance.
Comment 7 Martin Fousek 2014-07-09 11:41:57 UTC
Waiting for any user response. Reported please attach requested information and reopen this issue again. Thanks a lot.
Comment 8 Lynx6 2014-08-25 13:45:55 UTC
http://forums.netbeans.org/topic57424.html

This error is old, is not necessary a testing project. You could replicate it creating a JAR project with Maven + add a JSF page (xhtml) to /META-INF/resources/, autocompletion will show angular attributes when it should show JSF atttributes by component tag.
Comment 9 Martin Fousek 2014-08-29 06:46:36 UTC
(In reply to Lynx6 from comment #8)
> http://forums.netbeans.org/topic57424.html
> 
> This error is old, is not necessary a testing project. You could replicate
> it creating a JAR project with Maven + add a JSF page (xhtml) to
> /META-INF/resources/, autocompletion will show angular attributes when it
> should show JSF atttributes by component tag.

I understand now, sorry I didn't know that you mean simply Java project with included Facelets.

AFAIK all JSF editor related support is related to the Web project's document root but I'm reopening this issue and I'll try to take a look on it into the next NB release whether it wouldn't be possible to rewrite it and enable Facelets editing in any project type.

Thanks for your report.
Comment 10 fwelland 2015-04-10 19:38:46 UTC
This is also true for gradle JSF projects with applied war plugin.   NB 8.0.2.   


It would be great if gradle projects had all (or many or just some) the great features that NB, when using native build/project files.
Comment 11 Martin Balin 2016-07-07 08:53: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