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 200189 - JSF 2.x Code Completion does not work
Summary: JSF 2.x Code Completion does not work
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-16 18:24 UTC by jyeary
Modified: 2011-12-01 16:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Failure to code complete (179.57 KB, image/png)
2011-07-16 18:24 UTC, jyeary
Details
Editor Detects missing tag lib (88.92 KB, image/png)
2011-07-16 18:25 UTC, jyeary
Details
The wrong cc items order screenshot (64.24 KB, image/png)
2011-10-11 13:26 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jyeary 2011-07-16 18:24:09 UTC
Created attachment 109470 [details]
Failure to code complete

The code completion is not working for JSF 2.x. In NB 6.9.1, the closing tags code complete for the current component. In NB 7.0 the code completion wants to close the HTML tags, and not the inner most nested JSF tag. Also tag libraries are not added automatically when the component is being used in a consistent manner. For example, I type <f:facet name="header/> and hit enter. It does not add it to the xmlns declaration automatically.
Comment 1 jyeary 2011-07-16 18:25:15 UTC
Created attachment 109471 [details]
Editor Detects missing tag lib

The editor detects that the tag lib is missing, but fails to automatically add it.
Comment 2 jyeary 2011-07-16 18:25:57 UTC
Updated for all platforms
Comment 3 Marek Fukala 2011-10-11 13:26:30 UTC
Created attachment 111852 [details]
The wrong cc items order screenshot
Comment 4 Marek Fukala 2011-10-11 13:26:50 UTC
1. I cannot reproduce the problem with not working add library import hint. If I create a new facelets JSF page, put <f:facet/> inside and apply the hint the import is properly done.

2. As for the completion not offering closing tags for opened facelets tags it works as well, there's only a problem that the items are incorrectly ordered in the completion list (see the attachment).
Comment 5 Marek Fukala 2011-10-11 13:28:53 UTC
>I type <f:facet name="header/> and hit enter. It does not
>add it to the xmlns declaration automatically.

You need to invoke the hint (ctrl-enter) on the line, just pressing enter doesn't work
Comment 6 Marek Fukala 2011-10-11 15:09:35 UTC
the problem with completion items order has been fixed fixed in web-main#a249106b8bb8

Please create new issue and put there a list of steps to reproduce if you still encounter the problem #1 in a netbeans 7.1 builds.
Comment 7 Quality Engineering 2011-10-12 14:24:00 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a249106b8bb8
User: Marek Fukala <mfukala@netbeans.org>
Log: #200189 - fixing the completion items order. Not increasing html.editor.lib major version though there are incompatible changes since both modules html.editor and html.parser are not visible on AU and will likely be updated along with the html.editor.lib
Comment 8 Vladimir Riha 2011-12-01 16:45:06 UTC
verified, problem #2 in comment #4 no longer exists.

Product Version: NetBeans IDE 7.1 RC2 (Build 201111302200)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Linux version 3.0.0-13-generic-pae running on i386; UTF-8; en_US (nb)