[ 
https://issues.apache.org/jira/browse/NETBEANS-5114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17275964#comment-17275964
 ] 

Matthias Bläsing commented on NETBEANS-5114:
--------------------------------------------

Thank you for creating the reproducer! I overlooked, that netbeans might treat 
xhtml files different from regular XML files. I was focused on NetBeans and 
overlooked, that the xhtml must follow xml rules.

However I followed your steps and looking at the templates and the generated 
code, the code is correct. The file does not use the xhtml namespace by default 
and thus does not need the namespace to be declared. As using xhtml for content 
is common, I see the benefit to have the default namespace declared to xhtml. 
It is also common, that jsf libraries are tied to namespace prefixes, so I 
don't see conflict potential.

This however makes this a feature and not a bug.

> Generated ui:composition missing xmlns
> --------------------------------------
>
>                 Key: NETBEANS-5114
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5114
>             Project: NetBeans
>          Issue Type: Bug
>          Components: javaee - JSF
>    Affects Versions: 12.1
>         Environment: Windows 10 / Netbeans 12.1
>            Reporter: Stephen Brooksbank
>            Assignee: Jakub Herkel
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: image-2020-12-08-12-10-40-084.png, missingNamespace.zip, 
> namespaceWarning.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When generating a facelets client page using:
> new --> Facelets Template Client --> ui:composition option
> the generated file is missing:
> {{xmlns="http://www.w3.org/1999/xhtml"; }}
> namespace from the ui:composition header tag:
> !image-2020-12-08-12-10-40-084.png!
>  
> This causes page errors as soon as standard HTML tags are added to the page, 
> such as <h1>.
> Please correct the template generation code for this case. Thanks.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to