Skip to content

JSF new file "JSF Composite Component" dialog does not work #8004

@stevaber

Description

@stevaber

Apache NetBeans version

Apache NetBeans 23

What happened

New file "JSF Composite Component" does not work any more. When I try to create file template, "user" in example below, dialog create empty file and report error "user.xhtml already exist" in the bottom of dialog and stays opened.

image

In previous NB versions dialog created JSF composite component with following content:

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:cc="http://xmlns.jcp.org/jsf/composite">

    <!-- INTERFACE -->
    <cc:interface>
    </cc:interface>

    <!-- IMPLEMENTATION -->
    <cc:implementation>
    </cc:implementation>
</html>

Also in previous NB versions dialog was not finished. The "Prefix:" and "Implementation:" sections were disabled.

Language / Project Type / NetBeans Component

Java "Web application" Maven and Ant

How to reproduce

Just try to add new file -> JavaServer Faces -> JSF Composite Component
enter file name and click finish.

Did this work correctly in an earlier version?

Apache NetBeans 16 or earlier

Operating System

Windows 10 version 10.0 running on amd64; UTF-8; en_US (nb)

JDK

17.0.10; Java HotSpot(TM) 64-Bit Server VM 17.0.10+11-LTS-240

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions