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

doctype component ClassCastException #5182

Closed
eproffit2 opened this issue Dec 8, 2022 · 2 comments
Closed

doctype component ClassCastException #5182

eproffit2 opened this issue Dec 8, 2022 · 2 comments

Comments

@eproffit2
Copy link

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.

@melloware
Copy link
Contributor

@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
@BalusC
Copy link
Contributor

BalusC commented Dec 13, 2022

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

@BalusC BalusC closed this as completed Dec 13, 2022
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants