Is is possible to access the value that is in a selectOneMenu through FacesContext?
Is is possible to access the value that is in a selectOneMenu through FacesContext?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The values of HTML input elements are normally submitted as HTTP request parameters with the input field name as request parameter name. So if you know the JSF-generated HTML input field name, then you’ll be able to grab it from the request parameter map.
E.g.
and
The usefulness of this is however highly questionable. You normally bind input values to backing bean properties directly by the
valueattribute ofUIInputcomponents so that JSF will do all the job of gathering request parameters, converting/validating them and updating the model values.