This question is closely related to this one (which has been answered).
Throughout my project, I navigate between screens using JSF command buttons, where the action
You can redirect the response from the backing bean:
public void clickFlight(Item lowFareBundledSearchItem) throws IOException {
// ...
FacesContext.getCurrentInstance().getExternalContext().redirect("selected-flight-review.xhtml");
FacesContext.getCurrentInstance().responseComplete();
}
Just add in your backing bean return "selected-flight-review"; You don't need to add (.xhtml) Or if you wanna redirect return "selected-flight-review? Faces-redirect=true";