eclipse-ee4j / mojarra

Mojarra, a Jakarta Faces implementation
Other
160 stars 109 forks source link

doctype component ClassCastException #5182

Closed eproffit2 closed 1 year ago

eproffit2 commented 1 year ago

According to VDL documentation (4.0), the component type for a doctype tag is "jakarta.faces.HtmlDoctype". In the com.sun.faces.facelets.tag.faces.html.HtmlLibrary class, it is defiled as a UIOutput.COMPONENT_TYPE instead of a HtmlDoctype.COMPONENT_TYPE. Which leads to ClassCastException when the tag is rendered.

To reproduce, just add a tag to any jsf page, and there will be a ClassCastException.

melloware commented 1 year ago

@eproffit2 care to submit a PR to fix?

BalusC commented 1 year ago

Fixed. Thank you very much for reporting and the PR effort!