Hi, This link found to be dead now, any idea? http://example.irian.at/example-sandbox-20061118/ajaxChildComboBox.jsf
Damar On 11/18/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
Hi, the list is reduced in the ValueChangeEvent method? Apart from this, i can`t see any mistakes in the code snippet. Any errors shown in the page? (don`t forget t:messages) Alternatively you can also use the sandbox ajax comboBox [1] which should exactly fit your needs and seems to be more user friendly. cheers, Gerald [1] http://example.irian.at/example-sandbox-20061118/ajaxChildComboBox.jsf On 11/18/06, Damar Thapa <[EMAIL PROTECTED]> wrote: > 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 > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
-- With regards, Damar Thapa

