1

JSF ensure

<h:commandXxx action="index.xhtml"> 

to page forward, and

<h:commandXxx action="index.xhtml?facesredirect=true">

to page redirect.

How to perform these two operations with Javascript?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Shogg
  • 796
  • 2
  • 7
  • 14

1 Answers1

1

No.

Just send a request to server in such way that the server applies exactly the desired behavior.

E.g.

location = "index.xhtml";
location = "pageWhichRedirectsToOtherPageWhichForwardsToThatPage.xhtml";
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555