Is it possible to write converter which can convert String[]
to String?
<p:selectManyCheckbox value="#{bean.numbers}" >
<f:selectItem itemValue="Number10" itemLabel="Number 10" />
<f:selectItem itemValue="Number20" itemLabel="Number 20" />
<f:selectItem itemValue="Number30" itemLabel="Number 30" />
<f:converter converterId="arrayStringConverter"/>
</p:selectManyCheckbox>
I need to declare #{bean.numbers}
as String. I know that selectManyCheckbox
requires Array or Collection.
How can I write converter that can convert array to separated string? I've tried using f:converter but it's called for every f:selectItem
, but not for the whole component value.