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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:45:04+00:00 2026-06-08T02:45:04+00:00

Im using mojarra 2.1.3, primefaces 3.2, netbeans 7.0.1. When we navigate to the outcome

  • 0

Im using mojarra 2.1.3, primefaces 3.2, netbeans 7.0.1.

When we navigate to the outcome xhtml in this ViewScoped managed bean method, is the outcome xhtml loaded via HTTP GET or HTTP POST?

    public String saveAll() {
    try {
        processPrincipalDistributorDealers();
        int res = saCompanyFacade.addCompany(sacompany, sacontacts, sacompanyproductallocations, saprincipaldistributordealers);
        if (res == 0) {
            return "/users/viewCompanies?faces-redirect=true";
        } else {
        .....

If this is POST I’d have problem with browser back button, if not then it’s fine.

Please help. Thanks.

  • 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-08T02:45:07+00:00Added an answer on June 8, 2026 at 2:45 am

    When returning a normal outcome

    return "outcome";
    

    then it won’t change the current request method which is always POST in case of JSF UICommand actions.

    When returning a redirect outcome

    return "outcome?faces-redirect=true";
    

    then it basically instructs the webbrowser to send a new GET request on the outcome. You also see the new URL being reflected back in the browser’s address bar. This is always GET.

    You can also easily track it down by checking the HTTP traffic in the webbrowser’s developer toolset (press F12 in Chrome/IE9/Firebug and check “Net” or “Network” section to see it).

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

Sidebar

Related Questions

Im using Mojarra 2.1.3, NetBeans 7.0.1, Primefaces 3.2. I have a few dynamic xhtml
I am using JSF 2.0 Mojarra. I need to create a Managed Bean that
Im using Mojarra 2.1.3, Netbeans 7.0.1, primefaces 3.2. I am currently in a quandary
I am writing a JSF 2.0 Mojarra application using Primefaces 3.3.1 on Tomcat 6.
Can someone please explain this phenomenon? I am using Mojarra 2.1.6 - Glassfish 3.1.2.
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
I am using JSF2.0 Mojarra 2.0.2. I have a method that logs out a
i'm making a JSF2.0 project using mojarra primefaces tomcat6.x. I made a select list
I'm working on a JSF 2.0 project using Mojarra, PrimeFaces and Tomcat 6.x, but
I got this error when I tried to access my development site via http://localhost/home/index.html

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.