Package com.liferay.faces.bridge.context.url

Examples of com.liferay.faces.bridge.context.url.BridgeActionURL.removeParameter()


      // URL.
      String facesViewIdParameter = bridgeActionURL.getParameter(Bridge.FACES_VIEW_ID_PARAMETER);

      if (Bridge.FACES_USE_CURRENT_VIEW_PARAMETER.equals(facesViewIdParameter)) {
        bridgeActionURL.setSelfReferencing(true);
        bridgeActionURL.removeParameter(Bridge.FACES_VIEW_ID_PARAMETER);
      }

      // If the "_jsfBridgeViewPath" URL parameter is equal to "_jsfBridgeCurrentView" then
      // the URL is self-referencing and the "_jsfBridgeViewPath" parameter muse be removed
      // from the URL.
View Full Code Here


      // from the URL.
      String facesViewPathParameter = bridgeActionURL.getParameter(Bridge.FACES_VIEW_PATH_PARAMETER);

      if (Bridge.FACES_USE_CURRENT_VIEW_PARAMETER.equals(facesViewPathParameter)) {
        bridgeActionURL.setSelfReferencing(true);
        bridgeActionURL.removeParameter(Bridge.FACES_VIEW_PATH_PARAMETER);
      }
    }

    // Otherwise, the specified URL must be for a path-encoded URL (either a Faces-View or
    // Non-Faces-View)
View Full Code Here

      // If the specified URL has a "javax.portlet.faces.DirectLink" parameter with a value of
      // "false", then remove it from the map of parameters as required by the Bridge Spec.
      String directLinkParam = bridgeActionURL.getParameter(Bridge.DIRECT_LINK);

      if (BooleanHelper.isFalseToken(directLinkParam)) {
        bridgeActionURL.removeParameter(Bridge.DIRECT_LINK);
      }

      if (!bridgeActionURL.isAbsolute() && !targetFacesView.isExtensionMapped() &&
          !targetFacesView.isPathMapped() && !url.startsWith(StringPool.POUND)) {
        bridgeActionURL.setParameter(Bridge.NONFACES_TARGET_PATH_PARAMETER, contextRelativeViewPath);
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.