voyent
how use ice:selectManyMenu with select multiple  XML
Forum Index -> Components
Author Message
csofiah

Joined: 31/May/2018 10:24:41
Messages: 1
Offline


Hi, I new with icefaces. I need one control that permiting select multiple, I am trying use selectManyMenu but I don't understand how populate the List for the attribute "value".

This is my code:
Code:
<ice:selectManyMenu style="width:auto" disabled="false" value="#{opspecAuthStation.selectedMenuItem}" >
 				    <f:selectItems value="#{opspecAuthStation.subFleetList}" />
 				</ice:selectManyMenu>


┬┐How can populate the selectMenuItem? This only need the posible values?

Code:
private String [] selectedMenuItem; 
 selectedMenuItem = new String[subFleetList.size()]; 
 for (int i=0;i<subFleetList.size();i++) 
 		{ 
 			selectMenuItemList[i] = new SelectItem(subFleetList[i]); 
 		} 
 System.out.println("valores selectedMenuItem: " +  Arrays.toString(selectedMenuItem));



please some example how use selectManyMenu?Thanks
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team