-
Notifications
You must be signed in to change notification settings - Fork 112
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
doctype component ClassCastException #5182
Comments
@eproffit2 care to submit a PR to fix? |
BalusC
added a commit
that referenced
this issue
Dec 13, 2022
Fix wrong component type of h:doctype in html library
Fixed. Thank you very much for reporting and the PR effort! |
BalusC
added a commit
that referenced
this issue
Dec 13, 2022
jasondlee
pushed a commit
to jboss/mojarra
that referenced
this issue
May 18, 2023
Fix wrong component type of h:doctype in html library
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 <h:doctype/> tag to any jsf page, and there will be a ClassCastException.
The text was updated successfully, but these errors were encountered: