I have question on cascading lists (select menu). I have three lists:
When I make selection in category as I render from unit lists it works fine. I have setup from units list to similarly render to unit list which is not getting automatically triggered if I made category selection. I have tried to set render as from and to list both for category selection but then what happens is it posts category, old from unit, old to unit and what we get method calls as getFromList(new category), getToList(new category, old from unit).
See that new category is used fine but old from unit is used incorrectly.
I added ajax listener as below so indicate that category change is being invoked so that getFromList will set selectedFrom to new item from its list instead of one being posted. Then getToList will find correct category and from unit to query its to list.
<f:ajax execute="selectedCategory" render="selectedFrom"></f:ajax>