Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sunriseO opened this issue Aug 2, 2024 · 0 comments

Comments

@sunriseO
Copy link

sunriseO commented Aug 2, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant