I have to develop a <h:selectOneListBox>, wherein there will be 4 items.That is the dropdown will have 4 items. I need to retrieve the value that the user is selecting. I am facing the problem while retrieving the value. Its always coming null.
My Backing Bean is:
The view.jsp is as:
Now, whenever i try to get the selectedValue like
i get a NullPointerException.
Can anyone please help, how to retrieve the selected Value.