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

Summary: Facelets templates should be hotlinked for navigation from the template client
Product: javaee Reporter: RayDeCampo
Component: JSFAssignee: Martin Fousek <marfous>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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.