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 241647 - Fix imports action disabled when activating features in this order: HTML -> JavaEE
Summary: Fix imports action disabled when activating features in this order: HTML -> J...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-10 14:31 UTC by Vladimir Riha
Modified: 2016-07-07 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (79.96 KB, text/plain)
2014-02-10 14:31 UTC, Vladimir Riha
Details
IDE log 2 (61.51 KB, text/plain)
2014-02-11 09:06 UTC, Vladimir Riha
Details
screenshot 1 (260.31 KB, image/png)
2014-02-11 09:06 UTC, Vladimir Riha
Details
screenshot 2 (34.86 KB, image/png)
2014-02-11 09:06 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-02-10 14:31:05 UTC
Created attachment 144991 [details]
IDE log

To reproduce, please create a new JavaEE7 project with JSF 2.2 on GF4 and replace content of index.xhtml with following:

<!DOCTYPE html>
<html 
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns="http://www.w3.org/1999/xhtml">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        Hello from Facelets
    </h:body>
</html>


- press Ctrl+Shift+I 
=> nothing happens, also in Source|Fix imports this action is disabled



Product Version: NetBeans IDE Dev (Build 201402100001)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Martin Fousek 2014-02-11 08:53:34 UTC
Vlado I'm not able to reproduce your issue. I tried Ant Web Project EE7, JSF2.2, GF4 with the content of the file you attached here. Also I tested that with JDK7 and JDK8. Please give it another try with newer build. Thanks.
Comment 2 Vladimir Riha 2014-02-11 09:06:00 UTC
Created attachment 145018 [details]
IDE log 2

What I did:
 - start IDE with Features on demand
 - create a new HTML5 project, all default => some modules were activated
 - create a new Java Web project (Java EE7, GF4) with JSF 2.2 => JavaEE modules get activated

=> Fix namespaces is not available (missing in context menu in editor, disabled in Source main menu


Product Version: NetBeans IDE Dev (Build 201402110001)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 3 Vladimir Riha 2014-02-11 09:06:24 UTC
Created attachment 145019 [details]
screenshot 1
Comment 4 Vladimir Riha 2014-02-11 09:06:45 UTC
Created attachment 145020 [details]
screenshot 2
Comment 5 Martin Fousek 2014-02-11 13:21:03 UTC
After offline discussion, I'm lowering that priority. The issue is reproducible only by steps described in comment #2 and if I active JavaEE first or after IDE restart everything works well, there shouldn't be many users facing this. 

Proposed solution is new (editor) API for this kind of action. Such an API would delegate to the implementations per the EditorKit. But I'm afraid that it's not possible to have it done before the code freeze.
Comment 6 Martin Balin 2016-07-07 08:54:56 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