[jboss-user] [JBoss Portal] - Redirect to another Portal Page after submiting data - JSF P

azariasz do-not-reply at jboss.com
Tue Jul 1 10:35:18 EDT 2008


Hello,
 
We are developing multipaged portal with JSF portlets. We need to able to switch between the pages after saving data in a JSFBean.

We tried to use following code:
JBossActionResponse response = (JBossActionResponse)faces.getExternalContext().getResponse();
  | response.sendRedirect("http://localhost:8080/portal/auth/portal/default/Raporty/");

After submiting data with commandLink, portal redirects to strange url:
anonymous wrote : http://localhost:8080/portal/auth/portal/default/Por%C3%B3wnanie/SylogicPorownanieWindow?com.sun.faces.portlet.VIEW_ID=%2Fjsp%2FSortingTable.jsp&action=1&com.sun.faces.portlet.NAME_SPACE=jbpns_2fdefault_2fPor%C3%B3wnanie_2fSylogicPorownanieWindowsnpbj

The url does not change if we change the redirection target.

Is sendRedirect method the right chose or is there another way to navigate between portal pages using JSF Portlets?

I would be very thankful for any useful information or solution,
Rafal



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161815#4161815

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161815



More information about the jboss-user mailing list