Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7913543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:52:10+00:00 2026-06-03T13:52:10+00:00

Is is possible to access the value that is in a selectOneMenu through FacesContext?

  • 0

Is is possible to access the value that is in a selectOneMenu through FacesContext?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:52:12+00:00Added an answer on June 3, 2026 at 1:52 pm

    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.

    <h:form id="formId">
        <h:selectOneMenu id="menuId">
            ...
    

    and

    String menuValue = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("formId:menuId");
    // ...
    

    The usefulness of this is however highly questionable. You normally bind input values to backing bean properties directly by the value attribute of UIInput components so that JSF will do all the job of gathering request parameters, converting/validating them and updating the model values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to access the value in the first cell of a HTMLTableRowElement
I'm looking to see if it's possible to access the value of a key
Is it possible to access a JNDI value from Tomcat's config from a Django
Is it possible to access an XML section / node using an attribute value
Possible Duplicate: Access return value from Thread.Start()'s delegate function public string sayHello(string name) {
Hello it is possible to access the value of a JavaScript variable by name?
Possible Duplicate: Access Auto-Increment Value During INSERT INTO Statement I want to run an
Is it possible to access Java values declared in a custom Widget class, from
Is it possible to access a class member without an instance of the class?
Is it somehow possible to access a user's public key files (located in ~/.ssh

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.