selectonemenu - Using JSF 2.x ,how to update other UI components from a change in current component -


i have selectonemenu , below have selectmanylistbox . based on user has selected in selectonemenu , want refresh selectmanylistbox . example selectonemenu has list of students , selectmanylistbox has list of courses. example in scenario, if select student1 automatically selectmanylistbox should show course1, course9 selected. if change selectonemenu student2 accordingly selectmanylistbox should show courses selected ones. general strategy of doing this?.

you fire change in selectonemenu , fill selectmanylistbox's value.

<f:ajax event="change"/>  

or if using primefaces, use <p:ajax event="change"/>

see link


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -