Package org.jboss.portletbridge.context

Examples of org.jboss.portletbridge.context.PortalActionURL.addParameter()


   * @return
   */
  private String encodeModeParam(String mode, String viewId) {
    try {
      PortalActionURL viewIdUrl = new PortalActionURL(viewId);
      viewIdUrl.addParameter(Bridge.PORTLET_MODE_PARAMETER, mode);
      return viewIdUrl.toString();
    } catch (MalformedURLException e) {
      throw new BridgeException("Malformed ViewId",e);
    }
  }
View Full Code Here


  private String directLink(String Url) {
      if(BridgeUtil.isPortletRequest()){
        try {
              PortalActionURL url = new PortalActionURL(Url);
              url.addParameter(Bridge.DIRECT_LINK, "true");
              return url.toString();
            } catch (MalformedURLException e) {
            }
      }
      return Url;
View Full Code Here

   * @return
   */
  private String encodeModeParam(String mode, String viewId) {
    try {
      PortalActionURL viewIdUrl = new PortalActionURL(viewId);
      viewIdUrl.addParameter(Bridge.PORTLET_MODE_PARAMETER, mode);
      return viewIdUrl.toString();
    } catch (MalformedURLException e) {
      throw new BridgeException("Malformed ViewId", e);
    }
  }
View Full Code Here

        PortalActionURL portalUrl = new PortalActionURL(uri);
        AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
        Map<String, Object> ajaxParameters = ajaxContext.getCommonAjaxParameters();
        if(null != ajaxParameters && ajaxParameters.size()>0){
          for (Entry<String,Object> entry : ajaxParameters.entrySet()) {
            portalUrl.addParameter(entry.getKey(), String.valueOf(entry.getValue()));
          }
          uri = portalUrl.toString();
        }
      } catch (MalformedURLException e) {
        throw new FacesException("Bad resource URL ",e);
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.