I have wrote a Validator
in JSf2 to validate two input fields but for this validation i want to know the selecteditem
from the SelectOneMenu
I tried below code but its not working
SelectOneMenu selectOneMenu = (SelectOneMenu) context.getViewRoot().findComponent("tabView:dialogWindow:valueType");
selectOneMenu.get
UIInput submittedVal = (UIInput)selectOneMenu.getSubmittedValue();
But this is giving Null
.
Can i have to go through the child of selectOneMenu
or something else?