selectBooleanCheckbox convert BUG

UI Components for JSF
Post Reply
PuRamzes
Posts: 3
Joined: 16 Nov 2017, 14:32

16 Nov 2017, 14:43

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.

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

19 Nov 2017, 21:30

I think it might be because of this line of code expecting it to be a Boolean.

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

PuRamzes
Posts: 3
Joined: 16 Nov 2017, 14:32

21 Nov 2017, 02:02

Melloware wrote:
19 Nov 2017, 21:30
I 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?

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

21 Nov 2017, 14:04

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

PuRamzes
Posts: 3
Joined: 16 Nov 2017, 14:32

23 Nov 2017, 16:22

i'll try.thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests