Codota Logo
ViewHandler.restoreView
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain ViewHandler
private void myMethod () {
ViewHandler v =
  • Codota IconFacesContext facesContext;facesContext.getApplication().getViewHandler()
  • Codota IconApplication application;application.getViewHandler()
  • Codota IconApplicationWrapper applicationWrapper;applicationWrapper.getWrapped().getViewHandler()
  • Smart code suggestions by Codota
}
origin: org.apache.myfaces.extensions.cdi.modules/myfaces-extcdi-jsf12-module-impl

/**
 * {@inheritDoc}
 */
@Override
public UIViewRoot restoreView(FacesContext facesContext, String viewId)
{
  if(this.windowContextAwareViewHandler == null)
  {
    return this.wrapped.restoreView(facesContext, viewId);
  }
  return this.windowContextAwareViewHandler.restoreView(facesContext, viewId);
}
origin: com.ocpsoft/prettyfaces-jsf2

@Override
public UIViewRoot restoreView(final FacesContext context, final String viewId)
{
 // TODO move DynaView intercepter here
 UIViewRoot view = parent.restoreView(context, viewId);
 // addPrettyViewParameters(context, view);
 return view;
}
origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20

/**
 * {@inheritDoc}
 */
@Override
public UIViewRoot restoreView(FacesContext facesContext, String viewId)
{
  if(this.windowContextAwareViewHandler == null)
  {
    return this.wrapped.restoreView(facesContext, viewId);
  }
  return this.windowContextAwareViewHandler.restoreView(facesContext, viewId);
}
origin: org.apache.shale/shale-tiles

/**
* <p>Pass through to the default view handler.</p>
* 
*/
public UIViewRoot restoreView(FacesContext context, String viewId) {
 return defaultViewHandler.restoreView(context, viewId);
}
 
origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf12

/**
 * {@inheritDoc}
 */
@Override
public UIViewRoot restoreView(FacesContext facesContext, String viewId)
{
  if(this.windowContextAwareViewHandler == null)
  {
    return this.wrapped.restoreView(facesContext, viewId);
  }
  return this.windowContextAwareViewHandler.restoreView(facesContext, viewId);
}
origin: ocpsoft/prettyfaces

@Override
public UIViewRoot restoreView(final FacesContext facesContext, final String arg1)
{
 return parent.restoreView(facesContext, arg1);
}
origin: sakaiproject/sakai

public UIViewRoot restoreView(FacesContext arg0, String arg1)
{
  UIViewRoot root = m_wrapped.restoreView(arg0, arg1);
  if (root != null)
  {
    // restore messages
    MessageSaver.restoreMessages(arg0);
  }
  return root;
}
origin: com.sun.faces/jsf-api

/**
 * <p>The default behavior of this method is to
 * call {@link ViewHandler#restoreView(javax.faces.context.FacesContext, String)}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#restoreView(javax.faces.context.FacesContext, String)
 * @since 1.2
 */
@Override
public UIViewRoot restoreView(FacesContext context, String viewId) {
  return getWrapped().restoreView(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#restoreView(javax.faces.context.FacesContext, String)}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#restoreView(javax.faces.context.FacesContext, String)
 * @since 1.2
 */
public UIViewRoot restoreView(FacesContext context, String viewId) {
  return getWrapped().restoreView(context, viewId);
}    
origin: sakaiproject/sakai

public UIViewRoot restoreView(FacesContext arg0, String arg1)
{
  UIViewRoot root = m_wrapped.restoreView(arg0, arg1);
  if (root != null)
  {
    // restore messages
    MessageSaver.restoreMessages(arg0);
  }
  return root;
}
origin: jboss/jboss-javaee-specs

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

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

@Override
public UIViewRoot restoreView(FacesContext context, String viewId)
{
  return getWrapped().restoreView(context, viewId);
}
origin: javax.faces/jsf-impl

public UIViewRoot restoreView(FacesContext context, String viewId) {
  return getGroovyDelegate().restoreView(context, viewId);
}
origin: javax.faces/javax.faces-api

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

public UIViewRoot restoreView(FacesContext arg0, String arg1)
{
  UIViewRoot root = getWrapped().restoreView(arg0, arg1);

  if (root != null)
  {
    // restore messages
    MessageSaver.restoreMessages(arg0);
  }

  return root;
}

origin: org.jboss.seam/jboss-seam

@Override
public UIViewRoot restoreView(FacesContext ctx, String viewId)
{
 UIViewRoot viewRoot =viewHandler.restoreView(ctx, viewId);
 if (viewRoot != null)
 {
   viewRoot.setViewId(viewHandler.deriveViewId(ctx,viewId));
 }
 return viewRoot;
}
origin: frenchc/jetm

@Override
public UIViewRoot restoreView(FacesContext aFacesContext, String s) {
 EtmPoint point = EtmManager.getEtmMonitor().createPoint("Restore view " + s);
 try {
  return delegate.restoreView(aFacesContext, s);
 } finally {
  point.collect();
 }
}
origin: org.springframework.webflow/org.springframework.faces

private UIViewRoot restoreFlowPortletView(FacesContext facesContext, String resourcePath) {
  RequestContext context = RequestContextHolder.getRequestContext();
  ViewRootHolder holder = (ViewRootHolder) context.getFlashScope().get(ViewRootHolder.VIEW_ROOT_HOLDER_KEY);
  if (holder != null && holder.getViewRoot().getViewId().equals(resourcePath)) {
    return holder.getViewRoot();
  } else {
    return delegate.restoreView(facesContext, resourcePath);
  }
}
origin: org.springframework.webflow/org.springframework.faces

public UIViewRoot restoreView(FacesContext context, String viewId) {
  String resourcePath = viewId;
  if (JsfUtils.isFlowRequest()) {
    resourcePath = resolveResourcePath(RequestContextHolder.getRequestContext(), viewId);
    if (JsfUtils.isPortlet(context)) {
      return restoreFlowPortletView(context, resourcePath);
    }
  }
  return delegate.restoreView(context, resourcePath);
}
javax.faces.applicationViewHandlerrestoreView

Javadoc

Perform whatever actions are required to restore the view associated with the specified FacesContext and viewId. It may delegate to the restoreView of the associated StateManager to do the actual work of restoring the view. If there is no available state for the specified viewId, return null.

Otherwise, the default implementation must obtain a reference to the ViewDeclarationLanguage for this viewId and call its ViewDeclarationLanguage#restoreView method, returning the result and not swallowing any exceptions thrown by that method.

Popular methods of ViewHandler

  • getActionURL
    If the value returned from this method is used as the file argument to the four-argument constructor
  • 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
  • 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

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now