I'm trying to make a CheckboxMenu with a pair of selectItems (String, integer) to be able to assign to each selected main item (a String) a number (an integer), I'm imagining something like a pair of ** ** instead of just one but if you have any other suggestions that would accomplish what I want it would be great:)
here is code :
<p:selectCheckboxMenu id="offres" value="#{helloBean.selectedOffres}" style="width:150px;height:30px" filter="true" filterMatchMode="startsWith" panelStyle="width:300px" label = "Liste Offres" >
<f:selectItem itemLabel="9 Affaire" itemValue="9 Affaire" />
<f:selectItem itemLabel="9 Affaire Pro" itemValue="9 Affaire Pro" />
<f:selectItem itemLabel="9 Avantage" itemValue="9 Avantage" />
<f:selectItem itemLabel="9 Business Internet" itemValue="9 Business Internet" />
<f:selectItem itemLabel="9 Business Téléphonie" itemValue="9 Business Téléphonie" />
<f:selectItem itemLabel="9 Online ADSL" itemValue="9 Online ADSL" />
</p:selectCheckboxMenu>
Thanks