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

  • Home
  • SEARCH
  • 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 6687743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:19:28+00:00 2026-05-26T05:19:28+00:00

I have this url for example: http://example.com?parameter=content When the user click in this link,

  • 0

I have this url for example:

http://example.com?parameter=content

When the user click in this link, then I should be able to get the parameter value which is ‘content’.
I was reading BalusC tutorial but is JSF 1.2 and I’m learning with JSF 2.

How could I do that?

  • 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-05-26T05:19:29+00:00Added an answer on May 26, 2026 at 5:19 am

    Two ways (both examples assume that the parameter name is parameter as in your question):

    1. Use @ManagedProperty on the desired bean property:

      @ManagedProperty("#{param.parameter}")
      private String parameter;
      

      This works on request scoped beans only and does not allow for fine grained conversion and validation.

    2. Use <f:viewParam> in the view pointing to the desired bean property:

      <f:metadata>
          <f:viewParam name="parameter" value="#{bean.parameter}" />
      </f:metadata>
      

      This works on view scoped beans as well and allows for fine grained conversion and validation using the standard validators like as on normal input components. It even allows for attaching a <h:message>.

    See also:

    • Communication in JSF 2.0 – Processing GET request parameters
    • ViewParam vs @ManagedProperty(value = "#{param.id}")
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Take a very simple case as an example, say I have this URL: http://www.example.com/65167.html
Is this a valid http url http://www.example.com?x&y or we must always have = sign
I have URL scheme for my blog like this: http://www.example.com/%YEAR%/%MONTH%/%CATEGORY%/%POST_TITLE%/ Now i want to
Say I have this url: http://site.example/dir/ In this folder I have these files: test.ascx.cs
Let's say I have this url: www.example.com/test.php?page=4 How do i retrieve the value of
i would like a simple help... i have a url like this: example.com/profile.php?id= &
I have a url string like this: http://www.google.com/cse?cx=017840637368510444960:ny1lmky7r-0&client=google-csbe&output=xml_no_dtd&q=simon+g I need to send this url
I have this piece of code: $(#faq).click(function () { var url = $.get(faq, {
I have links like http://example.com?query1=query1&query2=query2 as href of anchor tag. I want to do
I have this in my CSS file: body {style.css (line 3) background:#CDF8FF url(images/final_bg.jpg) no-repeat

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.