Reply To: Help regarding passing parameter

Splash Forums PrettyFaces Users Help regarding passing parameter Reply To: Help regarding passing parameter


Sorry for the delayed response. I think there is a simple way to do what you want. You should use an page action in your mapping. In this page action your can do the cleanup work if the query parameter is present. After cleaning up, you can set the query parameter field to null. This way PrettyFaces won’t add it to the postback URL any more.

Pseudo code:

<url-mapping id="somePage">
  <pattern value="/some-url/" />
  <view-id value="/faces/some-view.jsf" />
  <query-param name="frommenu">#{myBean.fromMenu}</query-param> 

public class MyBean {

  private String fromMenu;

  public void pageAction() {
    if("true".equals(fromMenu)) {
      fromMenu = null;

  /* getters + setters */


I hope this helps. 🙂