Package javax.faces.context

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


                outputStream.write(buffer, 0, length);
            }

            externalContext.setResponseStatus(200);
            externalContext.responseFlushBuffer();
            facesContext.responseComplete();
        }
        catch (IOException e) {
            throw new FacesException(e);
        }
        finally {
View Full Code Here


            {
               viewRoot = new UIViewRoot();
               viewRoot.setViewId("/com.ocpsoft.Dynaview.xhtml");
               facesContext.setViewRoot(viewRoot);
            }
            facesContext.responseComplete();
         }
      }
      else if (!facesContext.getResponseComplete())
      {
         FacesContext context = facesContext;
View Full Code Here

      Object response = facesContext.getExternalContext().getResponse();
      if (response instanceof HttpServletResponse)
      {
         sendError(code, message, (HttpServletResponse) response);
         facesContext.responseComplete();
      }

   }

   /**
 
View Full Code Here

            }
           
      DataTable table = (DataTable) component;
      exporter.export(context, table, outputFileName, isPageOnly, isSelectionOnly, encodingType, preProcessor, postProcessor);
     
      context.responseComplete();
    }
        catch (IOException e) {
      throw new FacesException(e);
    }
  }
View Full Code Here

      logger.debug("Asking view handler to render view");
      facesContext.getApplication().getViewHandler().renderView(facesContext, viewRoot);
      JsfUtils.notifyAfterListeners(PhaseId.RENDER_RESPONSE, facesLifecycle, facesContext);
    } finally {
      logger.debug("View rendering complete");
      facesContext.responseComplete();
      facesContext.release();
    }
  }

  /*
 
View Full Code Here

      JsfUtils.notifyAfterListeners(PhaseId.RENDER_RESPONSE, facesLifecycle, facesContext);
    } catch (IOException e) {
      throw new FacesException("An I/O error occurred during view rendering", e);
    } finally {
      logger.debug("View rendering complete");
      facesContext.responseComplete();
      facesContext.release();
    }
  }

  private void populateRequestMap(FacesContext facesContext, Map model) {
View Full Code Here

        try {
            context.getExternalContext().dispatch("/j_spring_security_logout");
        } catch (IOException ex) {
            Logger.getLogger(UserSessionBean.class.getName()).log(Level.SEVERE, null, ex);
        }
        context.responseComplete();
    }

    private String generateUserFullName() {
        StringBuilder fullUserNameBuilder = new StringBuilder();
        if (userInfo.getUserInfo().getLastName() != null) {
View Full Code Here

                    }
                }
            }
        }
       
        facesContext.responseComplete();
    }
   
    public String open() {
        FolderBean folderBean = (FolderBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(FolderBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());    
       
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();
    }
   
    public String update() {
        StoredFileDao storedFileDao = StoredFileDao.createInstance();
        try {
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();
  }

  public static class SearchResult {
    private Folder folder;
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.