Skip to content

vdldoc not generated for composite component using xmlns:cc="jakarta.faces.composite" #20

Open
@sunriseO

Description

@sunriseO

VdldocGenerator does not generate composite component documentention if using xmlns:cc="jakarta.faces.composite" in ui:composition.

<ui:composition ... xmlns:cc="jakarta.faces.composite" ...> <cc:interface componentType="..."> ... </cc:interface> <cc:implementation> ... </cc:implementation> </ui:composition>

Workaround 1: use of xmlns:cc="https://jakarta.ee/xml/ns/jakartaee" instead of xmlns:cc="jakarta.faces.composite" to be able to generate the vdldoc for a composite component
<ui:composition ... xmlns:cc="https://jakarta.ee/xml/ns/jakartaee" ...> ... </ui:composition>

Workaround 2: use of xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://vdldoc.omnifaces.org https://raw.githubusercontent.com/omnifaces/vdldoc/master/src/main/resources/org/omnifaces/vdldoc/resources/vdldoc-cc.xhtml.xsd" in ui:composition together with xmlns:cc="jakarta.faces.composite"
<ui:composition ... xmlns:cc="jakarta.faces.composite" ... xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://vdldoc.omnifaces.org https://raw.githubusercontent.com/omnifaces/vdldoc/master/src/main/resources/org/omnifaces/vdldoc/resources/vdldoc-cc.xhtml.xsd"> ... </ui:composition>

"jakarta.faces.composite" namespace is missing in org.omnifaces.vdldoc.CompositeComponentHandler.COMPOSITE_NAMESPACES
If the namesspace would be added here the vdldoc for composite component using xmlns:cc="jakarta.faces.composite" will be generated.
private static final String COMPOSITE_NAMESPACE_SUN = "http://java.sun.com/jsf/composite"; private static final String COMPOSITE_NAMESPACE_JCP = "http://xmlns.jcp.org/jsf/composite"; private static final String COMPOSITE_NAMESPACE_JEE = "https://jakarta.ee/xml/ns/jakartaee"; private static final Set<String> COMPOSITE_NAMESPACES = unmodifiableSet(new HashSet<String>(asList(COMPOSITE_NAMESPACE_SUN, COMPOSITE_NAMESPACE_JCP, COMPOSITE_NAMESPACE_JEE)));

Use of vdldoc 3.1. Same with vdldoc 3.2.
It was working in vdldoc 2.1 using xmlns:cc="http://xmlns.jcp.org/jsf/composite"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions