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 9135259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:48:03+00:00 2026-06-17T08:48:03+00:00

1) Is it a good practice to use get http variable in JSF? it

  • 0

1) Is it a good practice to use get http variable in JSF? it seems that it tries to avoid that.

2) Here is what I want to do: on the first page, I have a list of links, if you click on a link, you have a page with other links etc. like a tree.
I would like the user to be able to access the 3rd depth (for example) without starting from the top level (via a link with the related object ID in a get variable for instance).

so my question is:
How to set a get http variable from the managed bean?

To get it, this post is quite clear : Get http variable JSF

3) Of course, if you have another solution, feel free to share it.

  • 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-17T08:48:03+00:00Added an answer on June 17, 2026 at 8:48 am

    There’s no means of a good/bad practice as to using GET requests in JSF. If the business requirement mandates using a GET request, then just use it. However, there’s some history: in JSF 1.x there was no facility which eases applying/converting/validating GET parameters. You’d have to do it all yourself by traversing the ExternalContext#getRequestParameterMap() and/or by setting managed properties with #{param} and write all the conversion/validation boilerplate yourself. Using POST was then much easier (read: less code) and this might have caused the myth that GET is "bad" in JSF.

    Since JSF 2.0, the new <f:viewParam> tag was introduced which should make it all a breeze. It’s like the <h:inputText>, including conversion/validation, but then for request parameters.

    Note that it’s actually a bad practice to use POST for pure page-to-page navigation, which was more than often done in JSF 1.x. It resulted in non-bookmarkable and non-SEO-friendly requests.

    See also

    • What can <f:metadata>, <f:viewParam> and <f:viewAction> be used for?
    • When should I use h:outputLink instead of h:commandLink?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that it is good practice to use a using block when getting
I've read that good programming practice claims that one should use a function if
I've seen, here and elsewhere, many questions that, to get input data, use something
I want to get the first letter of a string and I've noticed that
I know that in Java, it is common practice to use get as a
First, a more abstract question. Is it good practice to use a namespace instead
Is it good practice to use custom error levels on trigger_error() ? For example,
Is it a good practice to use Assert for function parameters to enforce their
When writing a Perl module, is it a good practice to use croak/die inside
I know it is good practice to keep your website entirely 'http://www' or http://,

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.