-
1. Re: Redirect is not working
israel.bgf Mar 4, 2009 9:14 AM (in response to israel.bgf)Ops, sorry let me try to post the example again:
<exception class="com.nexxera.aen.business.BusinessException"> <redirect> <message severity="ERROR">#{messageHandler.formatMessage(org.jboss.seam.handledException)}</message> </redirect> </exception> -
2. Re: Redirect is not working
wesleyhales Mar 4, 2009 10:45 PM (in response to israel.bgf)This is a known (and actually the first) issue reported in the bridge.
https://jira.jboss.org/jira/browse/PBR-1.
It is on the list for next release. -
3. Re: Redirect is not working
sverker Mar 16, 2009 7:21 AM (in response to israel.bgf)Isn't this also a conceptual issue?
In a portlet I might want to redirect to a view id in the same portlet application, or I might want to redirect to a page in the portal. Both are valid usecases but how to distinguis between them?
Maybe the notation should be <redirect view-id="xxxx"/ when selecting another view id inside the portlet and when redirecting outside the portlet.
What is the current status on PBR-1 btw? -
4. Re: Redirect is not working
marc.chitwood Apr 14, 2009 4:25 PM (in response to israel.bgf)I'm also having a similar issue in that I cannot redirect from a JSF bean.
FacesContext context = FacesContext.getCurrentInstance();
HttpServletResponse response =
(HttpServletResponse)context.getExternalContext().getResponse();
response.sendRedirect("/some.jsp ");
Takes me to a blank page. This code works using the JSF portlet bridge.