Hi,

Somebody on the list may have implemented this. I have two
SelectOneMenu, A and B, with the same list.  But, when Menu A is
selected, the list of B has to be recreated with (full list minus the
item selected in Menu A).

My valueChangeEvent is something like the following:

public void firstChoiceSelected(ValueChangeEvent vce){
String firstChoice=(String)vce.getNewValue();
java.util.ArrayList<SelectItem> listB=new java.util.ArrayList();
listB=this.getListA(); //ListA=listB initially

//remove the item selected in Menu A
SelectItem item=new SelectItem(firstChoice,firstChoice);
list.remove(item);
this.setListB(listA);

In my case, valueChangeEvent is called, but the list remains the same.
What do I have to do? Any pointers would be highly appreciated.


With regards,

Damar Thapa

Reply via email to