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 249877 - Facelets templates should be hotlinked for navigation from the template client
Summary: Facelets templates should be hotlinked for navigation from the template client
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-17 23:32 UTC by RayDeCampo
Modified: 2015-01-19 09:19 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RayDeCampo 2015-01-17 23:32:26 UTC
Facelets provides templating via the <ui:composition> tag with the template attribute referencing the template file withing the application.  This reference should be hotlinked for navigation, just like the src attributes of the <ui:include> tags.

To demonstrate the issue, I created a simple project:

svn export https://github.com/RayDeCampo/netbeans-bugs/trunk/netbeans-templates-link-bug

1) Open the project
2) Open the index.xhtml file
3) Press and hold Ctrl and hover over the value of the src attribute of the <ui:include> tag on line 7.
4) Observe that the file name becomes a live link.  Clicking the link takes the user to the file, all as desired.
5) Press and hold Ctrl and hover over the value of the template attribute of the <ui:composition> tag on line 4.
6) Observe that the file name does not become a live link.

Desired behavior:

The file name becomes a live link.  When clicking the link, the corresponding file is opened.

Additionally, it would be nice if Ctrl+Space completion worked within the template attribute as it does in the src attribute.