Page 1 of 1

Converter forClass no longer working?

Posted: 06 Aug 2010, 14:19
by Bram
@FacesConverter(forClass = Foo.class) no longer seems to be working. This worked fine in the previous version of PF, but in 2.1 it's broken.

Expected behaviour: Conversion occurs automatically once a converter with the forClass attribute.

Actual behaviour: Conversion does not occur.

Workaround: add a value to the @FacesConverter and use an f:converter whenever you want to use the converter.

Is anyone else experiencing this?

Re: Converter forClass no longer working?

Posted: 06 Aug 2010, 19:12
by cagatay.civici
Which component does it fail?

Re: Converter forClass no longer working?

Posted: 06 Aug 2010, 23:00
by Bram
I've only tried it only (h:)SelectOneMenu and (p:)DataTable so far.

Re: Converter forClass no longer working?

Posted: 08 Aug 2010, 11:54
by cagatay.civici
Weird, h:selectOneMenu should definitely work and in PrimeFaces input components we usually check if there is a global converter for class as well.

Re: Converter forClass no longer working?

Posted: 25 Aug 2010, 15:34
by averri
I have the same problem! @FacesConverter is not working as expected. I'm using Primefaces 2.2.RC1-SNAPSHOT.

Look my converter:

@FacesConverter(forClass=Role.class)
public class RoleConverter implements Converter {
...
}

Re: Converter forClass no longer working?

Posted: 25 Aug 2010, 16:03
by cagatay.civici
Please read forum posting guideline before posting; Number 6.

http://primefaces.prime.com.tr/forum/vi ... f=3&t=1194