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 230041

Summary: Enabling JSF framework in Java EE 7 Maven web project uses JSPs by default
Product: javaee Reporter: Petr Jiricka <pjiricka>
Component: JSFAssignee: Martin Fousek <marfous>
Status: RESOLVED FIXED    
Severity: normal CC: dkonecny
Priority: P2    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Jiricka 2013-05-21 11:25:41 UTC
1. Create a Java EE 7 Maven web project with GlassFish 4 target
2. In project properties, add JSF framework (accept all defaults)

=> JSF is added, but JSP is used as the template language, not facelets. So welcomeJSF.jsp file is created. Under Configuration tab of the JSF customizer in project properties, only JSP is initially available in the Preferred Page Language combo box.

The workaround to switch between Configuration tab and another tab a couple times, after that Facelets is added to the combo box.

This is in trunk only, works fine in 7.3.1.
Comment 1 Martin Fousek 2013-05-21 11:44:47 UTC
Good to hear that it works well for 7.3.1. :) Targeting into 7.4, thanks.
Comment 2 Martin Fousek 2013-05-22 11:27:03 UTC
The problem was that initialization of server libraries was moved to the BG thread and preferred page language combo was not updated on time. I only added updatePreferedLanguage task after the server libraries scan, it will fix the combo at the same moment as the wizard became valid (in case of any delay).

web-main #390d3fe7165b
Comment 3 Quality Engineering 2013-05-23 02:35:03 UTC
Integrated into 'main-golden', will be available in build *201305222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/390d3fe7165b
User: Martin Fousek <marfous@netbeans.org>
Log: #230041 - Enabling JSF framework in Java EE 7 Maven web project uses JSPs by default
Comment 4 Martin Fousek 2013-06-11 06:40:55 UTC
*** Bug 231056 has been marked as a duplicate of this bug. ***