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

Closed
svenhaag opened this Issue Mar 2, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@svenhaag

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" />
</h:button>

In another bean:
@Inject
@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(ParamProducer.java:292) ~[omnifaces-3.0.jar:3.0]
at org.omnifaces.cdi.param.ParamProducer.getConvertedValues(ParamProducer.java:138) ~[omnifaces-3.0.jar:3.0]
at org.omnifaces.cdi.param.ParamProducer.produce(ParamProducer.java:102) ~[omnifaces-3.0.jar:3.0]
at org.omnifaces.cdi.param.DynamicParamValueProducer.create(DynamicParamValueProducer.java:72) ~[omnifaces-3.0.jar:3.0]

@BalusC

This comment has been minimized.

Show comment
Hide comment
@BalusC

BalusC Mar 4, 2018

Member

Fixed. Thanks for reporting!

Member

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