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 229773 - JSF from entity classes point to not existing template
Summary: JSF from entity classes point to not existing template
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 7.3.1
Hardware: All All
: P1 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-15 11:32 UTC by Jiri Skrivanek
Modified: 2013-05-17 13:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2013-05-15 11:32:58 UTC
JSF generated from entity classes point to template.xhtml but there is template.template file in repository. To reproduce:

- create web project with JSF (Java EE 7, GlassFish 4)
- create entity classes from DB
- create JSF from entity classes
- run project
- at index page click "Show All Customer Items" but it fails

/customer/List.xhtml @8,48 <ui:composition template="/template.xhtml"> Invalid path : /template.xhtml

Product Version: NetBeans IDE 7.3.1 (Build 201305142200)
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Martin Fousek 2013-05-16 08:23:47 UTC
It's consequence of templates refactoring which I did by updating for new JSF namespaces. :/ It's fixed in trunk in web-main #2454bc59ffbf.

If you would like to see this fixed in NB731 (since it's regression) feel free to mark it as candidate for HR_FIX. Thanks a lot for reporting!
Comment 2 Jiri Skrivanek 2013-05-16 09:51:22 UTC
Verified in NetBeans IDE Dev (Build web-main-10534-on-20130516). Since the fix is simple, please fix it in NB7.3.1 as well.
Comment 3 Martin Fousek 2013-05-16 10:42:59 UTC
Could I ask you for review, AGAIN? :) Just naming issue. Thanks.
Comment 4 Martin Janicek 2013-05-16 11:05:15 UTC
The patch looks fine and safe AGAIN :)
Comment 5 Martin Fousek 2013-05-16 13:31:34 UTC
Transplanted as releases #72f88e5a7cce.
Comment 6 Quality Engineering 2013-05-17 00:05:00 UTC
Integrated into 'releases', will be available in build *201305162200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/72f88e5a7cce
User: Martin Fousek <marfous@netbeans.org>
Log: #229773 - JSF from entity classes point to not existing template
(transplanted from 2454bc59ffbff995c64342834608996fc96b478a)
Comment 7 Quality Engineering 2013-05-17 09:51:38 UTC
Integrated into 'main-golden', will be available in build *201305170640* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2454bc59ffbf
User: Martin Fousek <marfous@netbeans.org>
Log: #229773 - JSF from entity classes point to not existing template