Can't programmatically set converter for SelectOneMenu

UI Components for JSF
Post Reply
4bugzilla
Posts: 16
Joined: 22 Sep 2010, 08:14

08 Dec 2011, 15:05

We have started migrating our existing JSF application to PF 3.x and in the process have found an issue with programmatic setting of converters on SelectOneMenu.

Following code

Code: Select all

Converter converter = JSFConvertersFactory.createConverter(...);
if (converter != null) {
       ((ValueHolder) component).setConverter(converter);
}
works perfectly fine if we use standard JSF HtmlSelectOneMenu component.
But as soon as we try to replace standard component with PF SelectOneMenu it stops working. PrimeFace's SelectOneMenu does not uses converter which is set using "setConverter" method.

We are testing this with the latest snapshot of PF 3.x.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests