congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ViewHandler.getActionURL
Code IndexAdd Tabnine to your IDE (free)

How to use
getActionURL
method
in
javax.faces.application.ViewHandler

Best Java code snippets using javax.faces.application.ViewHandler.getActionURL (Showing top 20 results out of 612)

origin: org.apache.myfaces.tobago/tobago-deprecation

 public String getActionURL(final FacesContext facesContext, final String viewId) {

/*
  if (PortletUtils.isRenderResponse(facesContext)) {
   return PortletUtils.setViewIdForUrl(facesContext, viewId);
  }

*/
  return base.getActionURL(facesContext, viewId);
 }

origin: javax/javaee-web-api

/**
 * <p>The default behavior of this method is to
 * call {@link ViewHandler#getActionURL(javax.faces.context.FacesContext, String)}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#getActionURL(javax.faces.context.FacesContext, String)
 * @since 1.2
 */
@Override
public String getActionURL(FacesContext context, String viewId) {
  return getWrapped().getActionURL(context, viewId);
}
origin: org.apache.myfaces.core/myfaces-api

@Override
public String getActionURL(FacesContext context, String viewId)
{
  return getWrapped().getActionURL(context, viewId);
}
origin: com.sun.faces/jsf-api

/**
 * <p>The default behavior of this method is to
 * call {@link ViewHandler#getActionURL(javax.faces.context.FacesContext, String)}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#getActionURL(javax.faces.context.FacesContext, String)
 * @since 1.2
 */
@Override
public String getActionURL(FacesContext context, String viewId) {
  return getWrapped().getActionURL(context, viewId);
}
origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

/**
 * <p>The default behavior of this method is to
 * call {@link ViewHandler#getActionURL(javax.faces.context.FacesContext, String)}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#getActionURL(javax.faces.context.FacesContext, String)
 * @since 1.2
 */
public String getActionURL(FacesContext context, String viewId) {
  return getWrapped().getActionURL(context, viewId);
}
origin: javax.faces/javax.faces-api

/**
 * <p>The default behavior of this method is to
 * call {@link ViewHandler#getActionURL(javax.faces.context.FacesContext, String)}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#getActionURL(javax.faces.context.FacesContext, String)
 * @since 1.2
 */
@Override
public String getActionURL(FacesContext context, String viewId) {
  return getWrapped().getActionURL(context, viewId);
}
origin: org.apache.myfaces.tomahawk/tomahawk

/**
 * @param facesContext
 * @return String A String representing the action URL
 */
protected String getActionUrl(FacesContext facesContext)
{
  ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
  String viewId = facesContext.getViewRoot().getViewId();
  return viewHandler.getActionURL(facesContext, viewId);
}

origin: org.apache.myfaces.core.internal/myfaces-shaded-impl

/**
 * @param facesContext
 * @return String A String representing the action URL
 */
protected String getActionUrl(FacesContext facesContext)
{
  ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
  String viewId = facesContext.getViewRoot().getViewId();
  return viewHandler.getActionURL(facesContext, viewId);
}
origin: org.richfaces.ui/richfaces-components-ui

/**
 * @param facesContext
 * @return String A String representing the action URL
 */
public String getActionUrl(FacesContext facesContext) {
  ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
  String viewId = facesContext.getViewRoot().getViewId();
  return viewHandler.getActionURL(facesContext, viewId);
}
origin: org.apache.myfaces.core/myfaces-impl

/**
 * @param facesContext
 * @return String A String representing the action URL
 */
protected String getActionUrl(FacesContext facesContext)
{
  ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
  String viewId = facesContext.getViewRoot().getViewId();
  return viewHandler.getActionURL(facesContext, viewId);
}
origin: org.richfaces.ui.common/richfaces-ui-common-ui

/**
 * @param facesContext
 * @return String A String representing the action URL
 */
public String getActionUrl(FacesContext facesContext) {
  ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
  String viewId = facesContext.getViewRoot().getViewId();
  return viewHandler.getActionURL(facesContext, viewId);
}
origin: org.jboss.seam/jboss-seam

protected String baseUrlForContent(String baseName, String extension) {
  if (useExtensions) {
    return baseName + "." + extension;
  } else { 
    FacesContext context = FacesContext.getCurrentInstance();
    ViewHandler handler = context.getApplication().getViewHandler();
    String url = handler.getActionURL(context, 
        DOCSTORE_BASE_URL + Faces.getDefaultSuffix(context));
    return context.getExternalContext().encodeActionURL(url);
  }
}
origin: org.apache.myfaces.core/myfaces-impl

protected void handleFaceletNotFound(FacesContext context, String viewId) throws FacesException, IOException
{
  String actualId = context.getApplication().getViewHandler().getActionURL(context, viewId);
  context.getExternalContext().responseSendError(HttpServletResponse.SC_NOT_FOUND, actualId);
  context.responseComplete();
}
origin: org.seasar.teeda/teeda-core

public static String getActionURL(FacesContext context, String viewId) {
  AssertionUtil.assertNotNull("FacesContext", context);
  ViewHandler handler = FacesContextUtil.getViewHandler(context);
  return handler.getActionURL(context, viewId);
}
origin: org.apache.myfaces.core/myfaces-api

public URL getActionURL(FacesContext context) throws MalformedURLException
{
  ExternalContext externalContext = context.getExternalContext();
  return new URL(externalContext.getRequestScheme(), externalContext.getRequestServerName(),
      externalContext.getRequestServerPort(),
      context.getApplication().getViewHandler().getActionURL(context, getToViewId(context)));
}
origin: org.glassfish/javax.faces

@Override
public String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams) {
  Map<String,List<String>> params;
  if (includeViewParams) {
    params = getFullParameterList(context, viewId, parameters);
  } else {
    params = parameters;
  }
  
  ExternalContext ectx = context.getExternalContext();
  return ectx.encodeActionURL(ectx.encodeBookmarkableURL(Util.getViewHandler(context).getActionURL(context, viewId), params));
}
origin: org.glassfish/jakarta.faces

@Override
public String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams) {
  Map<String,List<String>> params;
  if (includeViewParams) {
    params = getFullParameterList(context, viewId, parameters);
  } else {
    params = parameters;
  }
  
  ExternalContext ectx = context.getExternalContext();
  return ectx.encodeActionURL(ectx.encodeBookmarkableURL(Util.getViewHandler(context).getActionURL(context, viewId), params));
}
origin: org.apache.myfaces.tomahawk/tomahawk

public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {
  RendererUtils.checkParamValidity(facesContext, uiComponent, HtmlCollapsiblePanel.class);
  ResponseWriter writer = facesContext.getResponseWriter();
  HtmlRendererUtils.writePrettyLineSeparator(facesContext);
  writer.startElement(HTML.DIV_ELEM, uiComponent);
  HtmlRendererUtils.writeIdIfNecessary(writer, uiComponent, facesContext);
  
  ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
  String viewId = facesContext.getViewRoot().getViewId();
  viewHandler.getActionURL(facesContext, viewId);
  facesContext.getApplication();
}
origin: omnifaces/omnifaces

/**
 * The actual method we're decorating in order to either include the view parameters into the
 * action URL, or include the request parameters into the action URL, or use request URI as
 * action URL. Any <code>&lt;f|o:param&gt;</code> nested in the form component will be included
 * in the query string, overriding any existing view or request parameters on same name.
 */
@Override
public String getActionURL(FacesContext context, String viewId) {
  String actionURL = form.isUseRequestURI() && !form.isIncludeRequestParams() ? getActionURL(context) : getWrapped().getActionURL(context, viewId);
  String queryString = toQueryString(getParams(form, form.isUseRequestURI() || form.isIncludeRequestParams(), form.isIncludeViewParams()));
  return formatURLWithQueryString(actionURL, queryString);
}
origin: org.omnifaces/omnifaces

/**
 * The actual method we're decorating in order to either include the view parameters into the
 * action URL, or include the request parameters into the action URL, or use request URI as
 * action URL. Any <code>&lt;f|o:param&gt;</code> nested in the form component will be included
 * in the query string, overriding any existing view or request parameters on same name.
 */
@Override
public String getActionURL(FacesContext context, String viewId) {
  String actionURL = form.isUseRequestURI() && !form.isIncludeRequestParams() ? getActionURL(context) : getWrapped().getActionURL(context, viewId);
  String queryString = toQueryString(getParams(form, form.isUseRequestURI() || form.isIncludeRequestParams(), form.isIncludeViewParams()));
  return formatURLWithQueryString(actionURL, queryString);
}
javax.faces.applicationViewHandlergetActionURL

Javadoc

If the value returned from this method is used as the file argument to the four-argument constructor for java.net.URL (assuming appropriate values are used for the first three arguments), then a client making a request to the toExternalForm() of that URL will select the argument viewId for traversing the JSF lifecycle. Please see section JSF.7.6.2 for the complete specification, especially for details related to view protection using the javax.faces.render.ResponseStateManager#NON_POSTBACK_VIEW_TOKEN_PARAM and the behavior when the current request is to a URL for which the FacesServlet has an exact mapping as defined by Servlet.12.2.

Popular methods of ViewHandler

  • createView
    Create and return a new UIViewRoot instance initialized with information from the argument FacesCont
  • getResourceURL
    If the value returned from this method is used as the file argument to the four-argument constructor
  • restoreView
    Perform whatever actions are required to restore the view associated with the specified FacesContext
  • calculateRenderKitId
    Return an appropriate renderKitId for this and subsequent requests from the current client. It is an
  • calculateLocale
    Returns an appropriate Locale to use for this and subsequent requests for the current client.
  • writeState
    Take any appropriate action to either immediately write out the current state information (by callin
  • renderView
    Perform whatever actions are required to render the response view to the response object associated
  • initView
    Initialize the view for the request processing lifecycle. This method must be called at the beginni
  • getBookmarkableURL
    Return a JSF action URL derived from the viewId argument that is suitable to be used as the target
  • getViewDeclarationLanguage
    Return the ViewDeclarationLanguage instance used for this ViewHandler instance. The default impleme
  • getRedirectURL
    Return a JSF action URL derived from the viewId argument that is suitable to be used by the Navigat
  • calculateCharacterEncoding
    Returns the correct character encoding to be used for this request. The following algorithm is empl
  • getRedirectURL,
  • calculateCharacterEncoding,
  • deriveViewId,
  • deriveLogicalViewId,
  • getProtectedViewsUnmodifiable,
  • addProtectedView,
  • getViews,
  • getWebsocketURL,
  • removeProtectedView

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • startActivity (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now