code: public URL getActionURL(FacesContext context) throws MalformedURLException {
  
          ExternalContext extContext = context.getExternalContext();
          return new URL(extContext.getRequestScheme(),
                  extContext.getRequestServerName(),
                  extContext.getRequestServerPort(),
                  context.getApplication().getViewHandler().getActionURL(context, getToViewId(context)));
          
      }
docs: <p class="changed_added_2_0">Construct an absolute URL to this
  <code>NavigationCase</code> instance using {@link
  javax.faces.application.ViewHandler#getActionURL} on the path
  portion of the url.</p>
  
  @param context the {@link FacesContext} for the current request
  
  @throws MalformedURLException if the process of constructing the
  URL causes this exception to be thrown.