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 245235

Summary: Support for external project's resources (CSS, JS) file linkage in JSP/HTML editor
Product: web Reporter: elennaro
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.0.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description elennaro 2014-06-25 13:49:34 UTC
Lets say we have two projects
1) Static (which is HTML project) with web resources images/css/js
2) JSP/HTML project with generated or static HTML pages

Say we bind some resource from project 1 to project 2 like:

...
<link rel="stylesheet" type="text/css" href="${staticPath}/css/fonts.css" />
...
or
...
<script type="text/javascript" src="${staticPath}/lib/js/controller.js">
...
where staticPath is defined and is a ling to external web resource location(e.x. http://localhost:8383/static)

Everything works fine, but...
It will be great to have ability to link those 2 projects somehow and to tell project 2 that linked resources for him are in project 1, to be able to ctrl+click to move to project1/css/fonts.css file and preview styles, or use JavaScript variables in both project, for example angularJS directives, etc.
Comment 1 elennaro 2015-02-28 12:12:57 UTC
And least when we use a cdn like:

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.js"></script>

cc could work to.

I imagine we can resolve this easily by adding "External Sources" to project properties:

User could add a file there by putting a link of choosing a file from disk, then code completion could take data from those files.