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

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

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

  • 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.jboss.seam/jboss-seam

@Override
public UIViewRoot createView(FacesContext ctx, String viewId)
{
 return viewHandler.createView(ctx, viewId);
}
origin: com.ocpsoft/prettyfaces-jsf2

@Override
public UIViewRoot createView(final FacesContext context, final String viewId)
{
 // TODO move DynaView intercepter here
 UIViewRoot view = parent.createView(context, viewId);
 // addPrettyViewParameters(context, view);
 return view;
}
origin: org.apache.shale/shale-tiles

/**
* <p>Pass through to the default view handler.</p>
* 
*/
public UIViewRoot createView(FacesContext context, String viewId) {
 return defaultViewHandler.createView(context, viewId);
}
origin: javax/javaee-web-api

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

public UIViewRoot createView(FacesContext arg0, String arg1)
{
  UIViewRoot root = m_wrapped.createView(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#createView(javax.faces.context.FacesContext, String)}
 * on the wrapped {@link ViewHandler} object.</p>
 *
 * @see ViewHandler#createView(javax.faces.context.FacesContext, String)
 * @since 1.2
 */
@Override
public UIViewRoot createView(FacesContext context, String viewId) {
  return getWrapped().createView(context, viewId);
}
origin: org.apache.myfaces.core/myfaces-api

@Override
public UIViewRoot createView(FacesContext context, String viewId)
{
  return getWrapped().createView(context, viewId);
}
origin: sakaiproject/sakai

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

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

 String viewId = "/path/to/some.xhtml";
FacesContext context = FacesContext.getCurrentInstance();
ViewHandler viewHandler = context.getApplication().getViewHandler();

UIViewRoot view = viewHandler.createView(context, viewId);
viewHandler.getViewDeclarationLanguage(context, viewId).buildView(context, view);
// view should now have children.
origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

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

/**
 * @see Faces#setViewRoot(String)
 */
public static void setViewRoot(FacesContext context, String viewId) {
  context.setViewRoot(context.getApplication().getViewHandler().createView(context, viewId));
}
origin: org.omnifaces/omnifaces

/**
 * @see Faces#setViewRoot(String)
 */
public static void setViewRoot(FacesContext context, String viewId) {
  context.setViewRoot(context.getApplication().getViewHandler().createView(context, viewId));
}
origin: sakaiproject/sakai

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

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

  return root;
}

origin: com.sun.facelets/jsf-facelets

public UIViewRoot createView(FacesContext context, String viewId) {
  if (UIDebug.debugRequest(context)) {
    return new UIViewRoot();
  }
  return this.parent.createView(context, viewId);
}
origin: com.liferay.faces/liferay-faces-util

public void resetView(boolean renderResponse) {
  FacesContext facesContext = FacesContext.getCurrentInstance();
  ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
  UIViewRoot emptyView = viewHandler.createView(facesContext, facesContext.getViewRoot().getViewId());
  facesContext.setViewRoot(emptyView);
  if (renderResponse) {
    facesContext.renderResponse();
  }
}
origin: org.jboss.seam/jboss-seam

/**
* Proceed to render the Page.
*/
protected void render(FacesContext context, Page page)
{
 UIViewRoot viewRoot = context.getApplication().getViewHandler()
    .createView( context, getViewId(page) );
 context.setViewRoot(viewRoot);
}
origin: com.liferay.faces/com.liferay.faces.util

@Override
public void recreateComponentTree(FacesContext facesContext) {
  Application application = facesContext.getApplication();
  ViewHandler viewHandler = application.getViewHandler();
  UIViewRoot oldViewRoot = facesContext.getViewRoot();
  UIViewRoot viewRoot = viewHandler.createView(facesContext, oldViewRoot.getViewId());
  facesContext.setViewRoot(viewRoot);
  facesContext.renderResponse();
}
origin: org.seasar.teeda/teeda-core

protected void render(FacesContext context, ViewHandler viewHandler,
    String newViewId) {
  UIViewRoot viewRoot = viewHandler.createView(context, newViewId);
  viewRoot.setViewId(newViewId);
  context.setViewRoot(viewRoot);
  context.renderResponse();
}
origin: org.apache.myfaces.tobago/tobago-core

private void renderErrorPage(final FacesContext facesContext, final String errorPageLocation) throws IOException {
 final ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
 final UIViewRoot viewRoot = viewHandler.createView(facesContext, errorPageLocation);
 facesContext.setViewRoot(viewRoot);
 facesContext.getPartialViewContext().setRenderAll(true);
 final ViewDeclarationLanguage viewDeclarationLanguage = viewHandler
   .getViewDeclarationLanguage(facesContext, errorPageLocation);
 viewDeclarationLanguage.buildView(facesContext, viewRoot);
 facesContext.getApplication().publishEvent(facesContext, PreRenderViewEvent.class, viewRoot);
 viewDeclarationLanguage.renderView(facesContext, viewRoot);
 facesContext.responseComplete();
}
javax.faces.applicationViewHandlercreateView

Javadoc

Create and return a new UIViewRootinstance initialized with information from the argument FacesContext and viewId. Locate the ViewDeclarationLanguage implementation for the VDL used in the view. The argument viewId must be converted to a physical viewId that can refer to an actual resource suitable for use by the ViewDeclarationLanguage ViewDeclarationLanguage#createView, which must be called by this method.

Popular methods of ViewHandler

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

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JTable (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
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