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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:54:44+00:00 2026-06-01T23:54:44+00:00

Do I remember right or the parameter immediate set to true should change the

  • 0

Do I remember right or the parameter immediate set to true should change the url of the browser?
If it is correct, why doesn’t this link works properly?



    <h:form>
    <h:commandLink immediate="true" action="/url_page.xhtml" value="Label link"/>
    </h:form>

After some research I found a question where the author added the string “?faces-redirect=true” to the url… Is it work like I would? Should I set something else?
Thank you for your help.

P.S.: I tried also h:link but, perhaps, it doesn’t execute all thing because after that the next page returns a nullpointerException but the url change as I want…

Solution complete: I change the action of my h:commandLink to call a method that returns /url_page?faces-redirect=true because I found that nullpointer exception was into a servlet-filter…
Thank you @BalusC and @Matt !

  • 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-01T23:54:45+00:00Added an answer on June 1, 2026 at 11:54 pm

    Do I remember right or the parameter immediate set to true should
    change the url of the browser?

    No this attribute has a different purpose.

    You can use h:link for navigation. h:commandLink needs a bean method as action attribute. The outcome of the action method is the navigation target. If the action method returns null or is a void method, the current page will be reloaded. If it returns a String, JSF will take it and navigate to that outcome.

    If you want to perform a redirection from your action method, you can add ?faces-redirect=true to your outcome, e.g.

    return "login?faces-redirect=true";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I remember seeing this on Ajaxian and a couple other sites but I never
Perhaps I'm just not using the right Google-age. But I am trying to remember
I remember having read this in Apple's documentation but now I can't find it.
Suppose Am I right to say OnlinePortal should have the method initBooking(...) , not
I remember seeing how to do this somewhere, but I'm totally drawing a blank
I remember doing this in DB class in what feels like ages ago, but
A long time ago I remember reading that you should always use the smallest
I have an image that is around 1200 x 400 (if I remember right),
As of right now I check if a user can login in this manner:
If I remember right, a double or float is broken into 3 parts: a

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.