tags:

views:

1049

answers:

0

Hi There.... I'm facing a problem with the ice:selectOneMenu component in Icefaces..

In more details : When i fill the SelecItem arrayList i set an empty selcetItem at the first index in the arrayList, like that : mainClassificationsSI.add(new SelectItem(""));, and in My page i have the folowing :

<ice:selectOneMenu partialSubmit="true" binding="#{editOutgoingBean.mainClassificationSelect}" id="mBookClass" value="#{editOutgoingBean.outgoing.main_Classification}" valueChangeListener="#{editOutgoingBean.mainClassificationChanged}">
<f:selectItems value="#{editOutgoingBean.mainClassificationsSI}"/>

First of all, I'm sure that the : editOutgoingBean.outgoing.main_Classification has value which is on of the values of selectItems in the SelectItems arrayList, but when the page is displayed, the Select tag select the empty value and it didn't select the value of the main_Classification i set before...

When I remove the first Empty SelectItem from the ArrayList, the Select tag will select the value that i set for main_Classification. please help what to do.....