Package com.liferay.faces.bridge.context.map

Examples of com.liferay.faces.bridge.context.map.ContextMapFactory


  public void decode(FacesContext facesContext, UIComponent uiComponent) {

    try {

      // Get the UploadedFile from the request attribute map.
      ContextMapFactory contextMapFactory = (ContextMapFactory) FactoryExtensionFinder.getFactory(
          ContextMapFactory.class);
      BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
      Map<String, List<UploadedFile>> uploadedFileMap = contextMapFactory.getUploadedFileMap(bridgeContext);

      if (uploadedFileMap != null) {

        // Use reflection to create a dynamic proxy class that implements the RichFaces UploadedFile interface.
        Class<?> uploadedFileInterface = Class.forName(RICHFACES_UPLOADED_FILE_FQCN);
View Full Code Here


    return InputFile.DELEGATE_RENDERER_TYPE;
  }

  protected Map<String, List<UploadedFile>> getUploadedFileMap(FacesContext facesContext) {

    ContextMapFactory contextMapFactory = (ContextMapFactory) FactoryExtensionFinder.getFactory(
        ContextMapFactory.class);
    BridgeContext bridgeContext = BridgeContext.getCurrentInstance();

    return contextMapFactory.getUploadedFileMap(bridgeContext);
  }
View Full Code Here

    return InputFile.DELEGATE_RENDERER_TYPE;
  }

  protected Map<String, List<UploadedFile>> getUploadedFileMap(FacesContext facesContext) {

    ContextMapFactory contextMapFactory = (ContextMapFactory) FactoryExtensionFinder.getFactory(
        ContextMapFactory.class);
    BridgeContext bridgeContext = BridgeContext.getCurrentInstance();

    return contextMapFactory.getUploadedFileMap(bridgeContext);
  }
View Full Code Here

      else if (varName.equals(HTTP_SESSION_SCOPE)) {

        // Determines whether or not methods annotated with the &#064;PreDestroy annotation are preferably
        // invoked over the &#064;BridgePreDestroy annotation.
        BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
        ContextMapFactory contextMapFactory = (ContextMapFactory) FactoryExtensionFinder.getFactory(
            ContextMapFactory.class);
        value = contextMapFactory.getSessionScopeMap(bridgeContext, PortletSession.APPLICATION_SCOPE);
      }
      else if (varName.equals(MUTABLE_PORTLET_PREFERENCES_VALUES)) {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        PortletRequest portletRequest = getPortletRequest(facesContext);
View Full Code Here

      String submittedValue = requestParameterMap.get(clientId);

      if (submittedValue != null) {

        // Get the UploadedFile from the request attribute map.
        ContextMapFactory contextMapFactory = (ContextMapFactory) FactoryExtensionFinder.getFactory(
            ContextMapFactory.class);
        BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
        Map<String, List<UploadedFile>> uploadedFileMap = contextMapFactory.getUploadedFileMap(bridgeContext);

        List<UploadedFile> uploadedFiles = uploadedFileMap.get(clientId);

        if (uploadedFiles != null) {
View Full Code Here

TOP

Related Classes of com.liferay.faces.bridge.context.map.ContextMapFactory

Copyright © 2018 www.massapicom. 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.