org.ploin.web.faces
Class Base

java.lang.Object
  extended by org.ploin.web.faces.Base
Direct Known Subclasses:
BaseMessages

public class Base
extends Object

$LastChangedBy: r.reiz $
$Revision: 84 $
$Date: 2009-11-12 15:18:32 +0100 (Thu, 12 Nov 2009) $

Created by: robert Created date: Nov 11, 2009 - 10:46:45 PM

Description:


Constructor Summary
Base()
           
 
Method Summary
static javax.faces.application.Application getApplication()
          This method returns a instance of the application.
static javax.faces.context.FacesContext getFacesContext()
          This method returns the current instance of the faces context.
 Locale getLocale()
          This method returns the locale from the viewRoot.
 ResourceBundle getResourceBundle()
          This method returns a instance of application's default resource bundle.
 javax.faces.component.UIViewRoot getViewRoot()
          This method returns the viewRoot from the currentInstance of the FacesContext
 String getViewRootId()
          Returns the actual ID of the ViewRoot.
 void setLocale(Locale locale)
          set the locale in the viewRoot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base

public Base()
Method Detail

getResourceBundle

public ResourceBundle getResourceBundle()
This method returns a instance of application's default resource bundle.

Returns:
instance of ResourceBundle

getApplication

public static javax.faces.application.Application getApplication()
This method returns a instance of the application.

Returns:
instance of Application

getFacesContext

public static javax.faces.context.FacesContext getFacesContext()
This method returns the current instance of the faces context.

Returns:
instance of FacesContext

getLocale

public Locale getLocale()
This method returns the locale from the viewRoot.

Returns:
locale

setLocale

public void setLocale(Locale locale)
set the locale in the viewRoot.

Parameters:
locale -

getViewRoot

public javax.faces.component.UIViewRoot getViewRoot()
This method returns the viewRoot from the currentInstance of the FacesContext

Returns:
the viewRoot

getViewRootId

public String getViewRootId()
Returns the actual ID of the ViewRoot.

Returns:
the actual ID of the ViewRoot


Copyright © 2012 PLOIN GmbH. All Rights Reserved.