-
1. Re: JSF redirect to non Faces app
ssilvert Sep 25, 2012 3:37 PM (in response to davisonri_k12)Sounds like you need to use <h:link> instead of <h:commandLink>.
Stan
-
2. Re: JSF redirect to non Faces app
davisonri_k12 Sep 25, 2012 3:44 PM (in response to ssilvert)in my case i dont have a url that i can hardcode.besided i need to do some processing in my action method before i can redirect the user. this is what I do in my redirect method.
void redirect()
{
.....
.....
FacesContext.getCurrentInstance().getExternalContext().redirect(redirectURL);
}
Also, so the issue that i am seeing with the extendsion being changed is expected ? it seemed to work in jsf 1.2
-
3. Re: JSF redirect to non Faces app
ssilvert Sep 25, 2012 4:14 PM (in response to davisonri_k12)I'd have to look through the code to see what it is doing.
You could try manually just getting the HttpServletResponse from the ExternalContext. Then you could call HttpServletResponse.sendRedirect() manually and call FacesContext.responseComplete().
Stan
-
4. Re: JSF redirect to non Faces app
davisonri_k12 Sep 25, 2012 4:55 PM (in response to ssilvert)thanks, I had alread tried that previously. same problem with the sendRedirect.