Package org.apache.myfaces.portlet.faces.util

Examples of org.apache.myfaces.portlet.faces.util.QueryString.removeParameter()


    if (viewId != null)
    {
      // This is a Faces resource
      // put the viewId in the QueryStr.
      queryStr.addParameter(JSF_RESOURCE_TARGET_VIEWID_RENDER_PARAMETER, viewId);
      queryStr.removeParameter(Bridge.PORTLET_MODE_PARAMETER);
      queryStr.removeParameter(Bridge.PORTLET_WINDOWSTATE_PARAMETER);
    }
   

    // Encode the URL
View Full Code Here


    {
      // This is a Faces resource
      // put the viewId in the QueryStr.
      queryStr.addParameter(JSF_RESOURCE_TARGET_VIEWID_RENDER_PARAMETER, viewId);
      queryStr.removeParameter(Bridge.PORTLET_MODE_PARAMETER);
      queryStr.removeParameter(Bridge.PORTLET_WINDOWSTATE_PARAMETER);
    }
   

    // Encode the URL
   
View Full Code Here

    path = s.substring(0, queryStart);

    try
    {
      // If there is a backlink -- remove and convert it
      String backLinkValue = queryStr.removeParameter(Bridge.BACK_LINK);
      if (backLinkValue!= null)
      {
        queryStr.setParameter(backLinkValue, encodeActionURL(context.getApplication().getViewHandler().getActionURL(context,
                                context.getViewRoot().getViewId())), false);
      }
View Full Code Here

      {
        queryStr.setParameter(backLinkValue, encodeActionURL(context.getApplication().getViewHandler().getActionURL(context,
                                context.getViewRoot().getViewId())), false);
      }
      // just remove the viewLink param
      queryStr.removeParameter(Bridge.VIEW_LINK);
    }
    catch (Exception e)
    {
      ; // do nothing -- just ignore
   
View Full Code Here

    QueryString queryStr = null;

    if (queryStart != -1)
    {
      queryStr = new QueryString(url.substring(queryStart + 1), "UTF8");
      queryStr.removeParameter(token);
      String query = queryStr.toString();
      if (query != null && query.length() != 0)
      {
        url = url.substring(0, queryStart + 1) + query;
      }
View Full Code Here

      if (s != null && s.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))
      {
        isPortletURLSelfReference = true;
        // by removing the parameter we will rely on retaining the current view info based on \
        // the current render params
        queryStr.removeParameter(Bridge.FACES_VIEW_ID_PARAMETER);
      }
      else if (s != null && s1.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))
      {
        isPortletURLSelfReference = true;
        // by removing the parameter we will rely on retaining the current view info based on \
View Full Code Here

      else if (s != null && s1.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))
      {
        isPortletURLSelfReference = true;
        // by removing the parameter we will rely on retaining the current view info based on \
        // the current render params
        queryStr.removeParameter(Bridge.FACES_VIEW_PATH_PARAMETER);
      }
    }
    else if (url.startsWith("#") || isExternalURL(url) || isDirectLink(url))
    {
      return url;
View Full Code Here

      if (s != null && s.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))
      {
        isPortletURLSelfReference = true;
        // by removing the parameter we will rely on retaining the current view info based on \
        // the current render params
        queryStr.removeParameter(Bridge.FACES_VIEW_ID_PARAMETER);
      }
      else if (s != null && s1.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))
      {
        isPortletURLSelfReference = true;
        // by removing the parameter we will rely on retaining the current view info based on \
View Full Code Here

      else if (s != null && s1.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))
      {
        isPortletURLSelfReference = true;
        // by removing the parameter we will rely on retaining the current view info based on \
        // the current render params
        queryStr.removeParameter(Bridge.FACES_VIEW_PATH_PARAMETER);
      }

    }
    else if (url.startsWith("#") || isExternalURL(url) || isDirectLink(url))
    {
View Full Code Here

    path = s.substring(0, queryStart);

    try
    {
      // If there is a backlink -- remove and convert it
      String backLinkValue = queryStr.removeParameter(Bridge.BACK_LINK);
      if (backLinkValue!= null)
      {
        queryStr.setParameter(backLinkValue, encodeActionURL(context.getApplication().getViewHandler().getActionURL(context,
                                context.getViewRoot().getViewId())), false);
      }
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.