Bug 466475 - JSF 2.2 facelets are generated with old namespaces
Summary: JSF 2.2 facelets are generated with old namespaces
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Ian Trimble CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 466478 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-05 13:30 EDT by Leonard Theivendra CLA
Modified: 2015-05-11 10:05 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonard Theivendra CLA 2015-05-05 13:30:11 EDT
Driver used: Eclipse IDE for Java EE Developers (Luna and Mars)

Steps to reproduce:

1) Create a Web 3.1 project with the JSF 2.2 facet enabled
2) Launch the 'New HTML File' wizard and provide a .xhtml filename
3) On the next page of the wizard, enable the 'Use HTML Template' checkbox and select 'New Facelet Composition Page'
4) The generated facelet has these old namespaces:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">

The namespaces should be:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:f="http://xmlns.jcp.org/jsf/core">
Comment 1 Raghunathan Srinivasan CLA 2015-05-05 13:32:06 EDT
We will review for Mars.
Comment 2 Samuel Wu CLA 2015-05-05 13:46:36 EDT
*** Bug 466478 has been marked as a duplicate of this bug. ***
Comment 3 Samuel Wu CLA 2015-05-05 13:54:55 EDT
same problem with the JSP page creation.
Comment 4 Ian Trimble CLA 2015-05-08 16:57:30 EDT
Disagree with the "http://xmlns.jcp.org/jsf" namespace; I can find nothing to suggest that this should be used in place of "http://xmlns.jcp.org/jsf/facelets". Do you have a reference?
Comment 5 Ian Trimble CLA 2015-05-08 18:18:10 EDT
Issue with facelets (HTML) addressed. Bug 466881 has been logged to track the JSP-related case.
Comment 6 Leonard Theivendra CLA 2015-05-11 10:05:23 EDT
Hi Ian, couldn't find a firm reference.  From what I could gather online, these are the old -> new URI mappings:

https://jsflive.wordpress.com/2013/05/16/jsf22-namespaces/
http://www.yanaga.me/2014/01/jsf-22-new-namespaces.html