Converter forClass no longer working?

UI Components for JSF
Post Reply
Bram
Posts: 11
Joined: 05 Jul 2010, 15:23

06 Aug 2010, 14:19

@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?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Aug 2010, 19:12

Which component does it fail?

Bram
Posts: 11
Joined: 05 Jul 2010, 15:23

06 Aug 2010, 23:00

I've only tried it only (h:)SelectOneMenu and (p:)DataTable so far.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

08 Aug 2010, 11:54

Weird, h:selectOneMenu should definitely work and in PrimeFaces input components we usually check if there is a global converter for class as well.

averri
Posts: 136
Joined: 07 Sep 2009, 15:51
Location: Brazil

25 Aug 2010, 15:34

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 {
...
}

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

25 Aug 2010, 16:03

Please read forum posting guideline before posting; Number 6.

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests