Package javax.faces.context

Examples of javax.faces.context.FacesContext.responseComplete()


                    }
                }
            }
        }
       
        facesContext.responseComplete();
    }
}
View Full Code Here


                    }
                }
            }
        }
       
        facesContext.responseComplete();
    }
   
    public String seePermissions() {
        Folder folder = FolderDao.createInstance().retrieve(this.selectedFolder.getId());
        this.selectedFolder = new ViewFolder(folder);
View Full Code Here

        //Write to servlet output stream
        while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
            out.write(buffer, 0, bytesRead);
        }
        out.flush();
        facesContext.responseComplete();
    }

}
View Full Code Here

    } catch (IOException e) {
      LOG.error("", e);
      // TODO: may do error handling
      throw new FacesException("Can't redirect to '" + forward + "'");
    }
    facesContext.responseComplete();
  }

}
View Full Code Here

          contentWriter.write("\");");
          contentWriter.endElement(HtmlConstants.SCRIPT);
        }

        writeAjaxResponse(facesContext, content.toString());
        facesContext.responseComplete();

      } catch (IOException e) {
        LOG.error("Exception while processing Ajax", e);
      }
    }
View Full Code Here

        final String message = ResourceManagerUtil.getPropertyNotNull(
            facesContext, "tobago", "tobago.ajax.response.error");

        writeAjaxResponse(facesContext, message);

        facesContext.responseComplete();
      }

    } catch (IOException e) {
      LOG.error("Exception while processing Ajax", e);
    }
View Full Code Here

    Object request = externalContext.getRequest();
    if (request instanceof MultipartRequest) {
      MultipartRequest multipartRequest = (MultipartRequest) request;
      multipartRequest.parseRequest();
      if (multipartRequest.isStopped()) {
        facesContext.responseComplete();
      }
    }
  }

  /* (non-Javadoc)
 
View Full Code Here

      poppedView.getAttributes().remove(RequestContextImpl.LAUNCH_PARAMETERS);

      requestMap.put(RequestContextImpl.LAUNCH_PARAMETERS, launchParameters);
      requestMap.put(RequestContextImpl.LAUNCH_VIEW, poppedView);

      context.responseComplete();
      _LOG.fine("Returned from dialog and re-executing lifecycle for {0}",
                poppedView.getViewId());
    }
   
    requestMap.put(DIALOG_RETURN, Boolean.TRUE);
View Full Code Here

      _httpServletResponse.sendRedirect(url);
     
      FacesContext fc = FacesContext.getCurrentInstance();
      if(fc != null)
      {
        fc.responseComplete();
      }
    }
    else
    {
      throw new IllegalArgumentException(_LOG.getMessage(
View Full Code Here

            this.setResponseCharacterEncoding("UTF-8");
            this.addResponseHeader("Cache-control", "no-cache");
            writer.startDocument();
            writer.redirect(url);
            writer.endDocument();
            facesContext.responseComplete();
        }
        else if (_servletResponse instanceof HttpServletResponse)
        {
            ((HttpServletResponse) _servletResponse).sendRedirect(url);
            facesContext.responseComplete();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.