Skip to main content


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 11:25 Go to next message
Mateus Barni is currently offline Mateus BarniFriend
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 05:01 Go to previous message
Noor ul Huda is currently offline Noor ul HudaFriend
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 Apr 25 21:14:33 GMT 2024

Powered by FUDForum. Page generated in 0.03299 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top