I'm having trouble with my h:selectOneMenu and f:selectItems
I want the "value" to be taken from my array of numbers called list
private double list = {51.1511, 53.51351, 0.634343, 2.52555}
and the labels for each of these values to be
private String curr = {PYN, DKT, ALT, BIT}
Currently i do
<h:selectOneMenu value="#{serviceBean.select2}">
<f:selectItems value="#{serviceBean.list}" itemLabel="#{serviceBean.curr}" />
</h:selectOneMenu>
This works giving me the value as the numbers but instead of showing me the strings inside the item label it shows memory references instead. How do i get this to display the strings?