Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » POST and Redirect
POST and Redirect [message #905961] Fri, 31 August 2012 07:25 Go to next message
Mateus Barni is currently offline Mateus Barni
Messages: 10
Registered: August 2012
Location: Brazil
Junior Member
Need help redirecting to a URL passing some data trough POST.

I need to do this with JSF 2.1.x.

How to do that? A simple example is fine... already behind schedule with this.
Re: POST and Redirect [message #1048136 is a reply to message #905961] Wed, 24 April 2013 01:01 Go to previous message
Noor ul Huda is currently offline Noor ul Huda
Messages: 7
Registered: April 2012
Junior Member
Follow this:

@Name("yourBean")
public class YourBean {

@In
Redirect redirect;

public void yourMethod() {
redirect.setViewId("/someView.xhtml");
redirect.setParameter("someParam", "someValue");
redirect.execute();
}
}
Previous Topic:Eclipse and Tomcat 7 problem
Next Topic:Eclipse tomcat problem
Goto Forum:
  


Current Time: Thu Jul 31 13:56:46 EDT 2014

Powered by FUDForum. Page generated in 0.05818 seconds