Re: How to call action method and then redirect to page sending query parameters ?

Splash Forums PrettyFaces Users How to call action method and then redirect to page sending query parameters ? Re: How to call action method and then redirect to page sending query parameters ?

#23300

Sorry, I missed it in your post. Now it got it.

Could you try the second approach (without ajax) and do this instead?

public String resetPagingInfo() {
System.out.println("Is this method invoked after click");
pagingInfo = new PagingInfo();
return "/forum.xhtml?faces-redirect=true&forumId="+targetForumId;
}

I think this is simpler in your case. If you return something like pretty:forum from your action method, PrettyFaces requires the value of the forumId to correctly build the URL to redirect to. For this it tries to extract the current value from the corresponding property, which doesn’t seem to work in your case.

If you are using the code I showed above, it should work. :)