I try create converter for selectBooleanCheckbox, but it dont work right. Converter Calls after setters, and throws error like:
Cannot convert Root of type class org.primefaces.model.DefaultTreeNode to class java.lang.Boolean.
Why do he expect Boolean? I add converter to component.
selectBooleanCheckbox convert BUG
I think it might be because of this line of code expecting it to be a Boolean.
https://github.com/primefaces/primeface ... .java#L174
https://github.com/primefaces/primeface ... .java#L174
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
Melloware wrote: ↑19 Nov 2017, 21:30I think it might be because of this line of code expecting it to be a Boolean.
https://github.com/primefaces/primeface ... .java#L174
But why? Using Main converter is a transformation custom types, that invoke before updateModel Values.Is it not so?
Yes you are right. You might have to dig further to figure out exactly why its not being converted and what line is throwing the class cast exception.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 18 guests