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

ClassCastException using o:param with converter #438

svenhaag opened this Issue Mar 2, 2018 · 1 comment


None yet
2 participants

svenhaag commented Mar 2, 2018

Omnifaces 3.0
JSF 2.3-edr1
Mojarra 2.3.3
PrimeFaces 6.2

Defined a @FacesConverter("my.ConverterId")

<h:button outcome="mmc_organization_edit">
<o:param value="#{bean.myObject}" converter="my.ConverterId" />

In another bean:
@param(converter = "my.ConverterId", name = "urlParamName")
private MyObject myObject;

On button click I get:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Class
at org.omnifaces.cdi.param.ParamProducer.getConverter( ~[omnifaces-3.0.jar:3.0]
at org.omnifaces.cdi.param.ParamProducer.getConvertedValues( ~[omnifaces-3.0.jar:3.0]
at org.omnifaces.cdi.param.ParamProducer.produce( ~[omnifaces-3.0.jar:3.0]
at org.omnifaces.cdi.param.DynamicParamValueProducer.create( ~[omnifaces-3.0.jar:3.0]


This comment has been minimized.

Show comment
Hide comment

BalusC Mar 4, 2018


Fixed. Thanks for reporting!


BalusC commented Mar 4, 2018

Fixed. Thanks for reporting!

@BalusC BalusC closed this Mar 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment