I don`t understand how to use ArrayList of objects in f:selectitems. I use composite components and code below is not work:
<h:selectOneMenu id="kladrRegion-dctKladrRegion"
tabindex="100"
value="#{cc.attrs.kladrRegion}"
styleClass="comboBox ui-corner-all inputText ui-inputfield kladrSearchFormInput kladrSearchFormSelectWidth selectHight"
style="font-size: 13px; width: 300px;"
binding="#{cc.attrs.cbKladrRegion}" >
<f:selectItems value="#{cc.attrs.kladrRegions}" var="region"
itemLabel="#{region.value}" itemValue="#{region.id}" />
<f:ajax
listener="#{cc.attrs.kladrRegionChange}" />
</h:selectOneMenu>
This code does not work, because the attribute var receive a new value after adding a second composite component. In the previous composite components selectOneMenu will not be displayed. How to make a drop-down list in this case?