title: Get the value that has been selected in the selectOneMenu ListBox
body: <p>This is how my JSF looks like. </p>
  
  <pre><code>  &lt;h:selectOneMenu value="#{HotelDataForm.listHotel}"&gt;
             &lt;f:selectItems value="#{HotelDataForm.listHotel}" var="user" itemValue="#{user[1]}" itemLabel="#{user[1]}" /&gt;
          &lt;/h:selectOneMenu&gt;
  </code></pre>
  
  <p>I need to get the value selected in my ListBox to my Java code, so i could write a business logic using it. So how do i get the value selected in the ListBox to my java code.</p>