AnsweredAssumed Answered

Redirecting from dialog to web script

Question asked by oltchuva on Sep 17, 2008
Latest reply on Sep 26, 2008 by oltchuva
I have 2 separate working pieces: custom dialog and web script
I want to use properties entered by user in the dialog to add parameters to web script url

In finishImpl method of the dialog i try to redirect to the web script and I get the following error: java.lang.IllegalStateException: Cannot forward after response has been committed

      protected String finishImpl(FacesContext context, String outcome) throws Exception
         ExternalContext externalContext = context.getExternalContext();
         HttpServletResponse response =  (HttpServletResponse)externalContext.getResponse();
         try {
         } catch (Exception e) {
         // return the default outcome
         return outcome;

Thank you,