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 - Support for external project's resources (CSS, JS) file linkage in JSP/HTML editor
Summary: Support for external project's resources (CSS, JS) file linkage in JSP/HTML e...
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0.1
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2014-06-25 13:49 UTC by elennaro
Modified: 2015-02-28 12:12 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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" />
<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="//"></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.