Package com.liferay.faces.bridge.scope

Examples of com.liferay.faces.bridge.scope.BridgeRequestScope


    FacesRequestParameterMap facesRequestParameterMap = null;
    PortletRequest portletRequest = bridgeContext.getPortletRequest();
    PortletResponse portletResponse = bridgeContext.getPortletResponse();
    String namespace = portletResponse.getNamespace();
    PortletContainer portletContainer = bridgeContext.getPortletContainer();
    BridgeRequestScope bridgeRequestScope = bridgeContext.getBridgeRequestScope();
    String defaultRenderKitId = bridgeContext.getDefaultRenderKitId();
    Map<String, String> facesViewParameterMap = getFacesViewParameterMap(bridgeContext);

    if (portletRequest instanceof ClientDataRequest) {
View Full Code Here


    // Determines whether or not methods annotated with the @PreDestroy annotation are preferably invoked
    // over the @BridgePreDestroy annotation.
    this.preferPreDestroy = PortletConfigParam.PreferPreDestroy.getBooleanValue(portletConfig);

    BridgeRequestScope bridgeRequestScope = bridgeContext.getBridgeRequestScope();

    if (bridgeRequestScope != null) {
      this.removedAttributeNames = bridgeRequestScope.getRemovedAttributeNames();
    }
    else {
      this.removedAttributeNames = new HashSet<String>();
    }
  }
View Full Code Here

      // If the URL contains the "javax.portlet.faces.PortletMode" parameter, then set the
      // PortletMode on the ActionResponse.
      if (Bridge.PORTLET_MODE_PARAMETER.equals(urlParameterName)) {
        PortletMode portletMode = new PortletMode(parameterValue);
        BridgeRequestScope bridgeRequestScope = bridgeContext.getBridgeRequestScope();

        if (bridgeRequestScope != null) {
          PortletRequest portletRequest = bridgeContext.getPortletRequest();

          if (!portletRequest.getPortletMode().equals(portletMode) &&
              portletRequest.isPortletModeAllowed(portletMode)) {
            stateAwareResponse.setPortletMode(portletMode);
            bridgeRequestScope.setPortletModeChanged(true);
          }
        }
      }

      // Otherwise, if the URL contains the "javax.portlet.faces.WindowState" parameter, then
View Full Code Here

TOP

Related Classes of com.liferay.faces.bridge.scope.BridgeRequestScope

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.