selectonemenu - Using JSF 2.x ,how to update other UI components from a change in current component -
this question has answer here:
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
Post a Comment