congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ViewHandler.calculateLocale
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.ocpsoft.rewrite/rewrite-integration-faces

@Override
public Locale calculateLocale(final FacesContext facesContext)
{
 return parent.calculateLocale(facesContext);
}
origin: com.ocpsoft/prettyfaces-jsf2

@Override
public Locale calculateLocale(final FacesContext facesContext)
{
 return parent.calculateLocale(facesContext);
}
origin: org.apache.shale/shale-clay

/**
 * @param context faces context
 * @return locale calculated from the original handler
 */
public Locale calculateLocale(FacesContext context) {
  return original.calculateLocale(context);
}
origin: ocpsoft/rewrite

@Override
public Locale calculateLocale(final FacesContext facesContext)
{
 return parent.calculateLocale(facesContext);
}
origin: com.sun.jsftemplating/jsftemplating

/**
 *    <p> Returns an appropriate <code>Locale</code> to use for this and
 * subsequent requests for the current client.</p>
 *
 * @param context <code>FacesContext</code> for the current request
 *
 * @exception NullPointerException if <code>context</code> is
 *  <code>null</code>
 */
 public Locale calculateLocale(FacesContext context) {
 return _oldViewHandler.calculateLocale(context);
 }
origin: org.apache.shale/shale-tiles

/**
* <p>Pass through to the default view handler.</p>
* 
*/
public Locale calculateLocale(FacesContext context) {
 return defaultViewHandler.calculateLocale(context);
}
 
origin: ocpsoft/prettyfaces

@Override
public Locale calculateLocale(final FacesContext facesContext)
{
 return parent.calculateLocale(facesContext);
}
origin: ocpsoft/prettyfaces

@Override
public Locale calculateLocale(final FacesContext facesContext)
{
 return parent.calculateLocale(facesContext);
}
origin: org.apache.myfaces.tomahawk/tomahawk

public Locale calculateLocale(FacesContext context)
{
  return _viewHandler.calculateLocale(context);
}
origin: org.apache.myfaces.core/myfaces-shaded-impl

public Locale calculateLocale(FacesContext context)
{
  return this.parent.calculateLocale(context);
}
origin: org.apache.myfaces.core/myfaces-api

@Override
public Locale calculateLocale(FacesContext context)
{
  return getWrapped().calculateLocale(context);
}
origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

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

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

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

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

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

@Deprecated
public static Locale getLocale(final FacesContext facesContext) {
 final UIViewRoot root = facesContext.getViewRoot();
 final Locale locale;
 if (root != null) {
  locale = root.getLocale();
 } else {
  locale = facesContext.getApplication().getViewHandler().calculateLocale(facesContext);
 }
 return locale;
}
origin: org.jboss.seam.faces/seam-faces-impl

  @Produces
  @Faces
  public Locale getLocale() {
    if (facesContext.getViewRoot() != null) {
      return facesContext.getViewRoot().getLocale();
    } else {
      return facesContext.getApplication().getViewHandler().calculateLocale(facesContext);
    }
  }
}
origin: org.jboss.seam/jboss-seam

@Override
public Locale calculateLocale(FacesContext facesContext)
{
 Locale jsfLocale = viewHandler.calculateLocale(facesContext);
 if ( !Contexts.isSessionContextActive() )
 {
   return jsfLocale;
 }
 else
 {
   return LocaleSelector.instance().calculateLocale(jsfLocale);
 }
}
origin: org.springframework.webflow/org.springframework.faces

public Locale calculateLocale(FacesContext context) {
  if (JsfUtils.isFlowRequest()) {
    return RequestContextHolder.getRequestContext().getExternalContext().getLocale();
  } else {
    return delegate.calculateLocale(context);
  }
}
javax.faces.applicationViewHandlercalculateLocale

Javadoc

Returns an appropriate Locale to use for this and subsequent requests for the current client.

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
  • 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
  • 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)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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