1 Reply Latest reply on Jul 31, 2008 4:16 AM by barakka

    Redirect to another Portal Page after submiting data - JSF P

    azariasz

      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:
      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