Rectangle 27 6

The converter attribute expects by default a Converter instance when the value is a ValueExpression. Something like this <h:inputText converter="#{bean.converter}">. This unintuitive behaviour in composites is unfortunately "by design".

<f:converter>
<p:selectOneMenu ...>
    ...
    <f:converter converterId="#{cc.attrs.converter}" />
</p:selectOneMenu>

Unrelated to the concrete problem, you do not need a converter for this particular use case at all. JSF has already a builtin enum converter. You only need this converter if you're binding an UISelectMany component to a List<E> instead of E[].

GenericEnumConverter
UISelectMany
List<E>

Yeah!! I used the f:converter and it did the trick! ThankS!!

jsf 2 - Composite Component and SelectOneMenu with (ENUM) Converter - ...

jsf-2 primefaces composite-component
Rectangle 27 0

The converter attribute expects by default a Converter instance when the value is a ValueExpression. Something like this <h:inputText converter="#{bean.converter}">. This unintuitive behaviour in composites is unfortunately "by design".

<f:converter>
<p:selectOneMenu ...>
    ...
    <f:converter converterId="#{cc.attrs.converter}" />
</p:selectOneMenu>

Unrelated to the concrete problem, you do not need a converter for this particular use case at all. JSF has already a builtin enum converter. You only need this converter if you're binding an UISelectMany component to a List<E> instead of E[].

GenericEnumConverter
UISelectMany
List<E>

Yeah!! I used the f:converter and it did the trick! ThankS!!

jsf 2 - Composite Component and SelectOneMenu with (ENUM) Converter - ...

jsf-2 primefaces composite-component