|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.application.Application
com.sun.faces.application.ApplicationImpl
org.apache.empire.jsf2.app.FacesApplication
public abstract class FacesApplication
Field Summary | |
---|---|
static String |
APPLICATION_ATTRIBUTE
|
protected TextResolver[] |
textResolvers
|
Fields inherited from class com.sun.faces.application.ApplicationImpl |
---|
defaultRenderKitId, THIS_LIBRARY |
Constructor Summary | |
---|---|
protected |
FacesApplication()
|
protected |
FacesApplication(AppStartupListener startupListener)
|
Method Summary | |
---|---|
void |
addJavascriptCall(javax.faces.context.FacesContext fc,
String function)
|
static javax.faces.component.UIComponent |
findChildComponent(javax.faces.component.UIComponent parent,
String componentId)
finds a child component with the given id that is located below the given parent component |
javax.faces.component.UIComponent |
findComponent(javax.faces.context.FacesContext fc,
String componentId,
javax.faces.component.UIComponent nearComponent)
finds the component with the given id that is located in the same NamingContainer as a given component |
protected abstract DataSource |
getAppDataSource(DBDatabase db)
|
protected Connection |
getConnection(DBDatabase db)
returns a connection from the connection pool |
Connection |
getConnectionForRequest(javax.faces.context.FacesContext fc,
DBDatabase db)
returns a connection for the current Request |
Locale |
getContextLocale(javax.faces.context.FacesContext ctx)
returns the active locale for a given FacesContext |
String |
getDefaultControlType(DataType dataType)
returns the default input control type for a given data Type |
String |
getPartialSubmitComponentId(javax.faces.context.FacesContext fc)
returns the componentId for which a partial submit has been performed. |
ResourceBundle |
getResourceBundle(javax.faces.context.FacesContext fc,
String var)
|
TextResolver |
getTextResolver(javax.faces.context.FacesContext ctx)
|
TextResolver |
getTextResolver(Locale locale)
|
String |
getWebRoot()
returns the web context path as returned from ServletContext.getContextPath() |
boolean |
hasError(javax.faces.context.FacesContext fc)
checks if the current context contains an error |
protected abstract void |
init(javax.servlet.ServletContext fc)
|
protected void |
initComplete(javax.servlet.ServletContext servletContext)
|
protected void |
initTextResolvers()
|
boolean |
isPartialSubmit(javax.faces.context.FacesContext fc)
returns true if a form input element has been partially submitted |
void |
onChangeView(javax.faces.context.FacesContext fc,
String viewId)
|
void |
releaseAllConnections(javax.faces.context.FacesContext fc)
|
void |
releaseAllConnections(javax.faces.context.FacesContext fc,
boolean commit)
releases the current request connection |
protected void |
releaseConnection(DBDatabase db,
Connection conn,
boolean commit)
releases a connection from the connection pool |
void |
releaseConnection(javax.faces.context.FacesContext fc,
DBDatabase db)
|
void |
releaseConnection(javax.faces.context.FacesContext fc,
DBDatabase db,
boolean commit)
|
Methods inherited from class com.sun.faces.application.ApplicationImpl |
---|
addBehavior, addComponent, addConverter, addConverter, addDefaultValidatorId, addELContextListener, addELResolver, addValidator, createBehavior, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createConverter, createConverter, createConverterBasedOnClass, createMethodBinding, createValidator, createValueBinding, evaluateExpressionGet, getActionListener, getApplicationELResolvers, getBehaviorIds, getComponentTypes, getConverterIds, getConverterTypes, getDefaultLocale, getDefaultRenderKitId, getDefaultValidatorInfo, getELContextListeners, getELResolver, getExpressionFactory, getMessageBundle, getNavigationHandler, getProjectStage, getPropertyResolver, getResourceHandler, getStateManager, getSupportedLocales, getValidatorIds, getVariableResolver, getViewHandler, newConverter, newThing, publishEvent, publishEvent, removeELContextListener, setActionListener, setDefaultLocale, setDefaultRenderKitId, setMessageBundle, setNavigationHandler, setPropertyResolver, setResourceHandler, setStateManager, setSupportedLocales, setVariableResolver, setViewHandler, subscribeToEvent, subscribeToEvent, unsubscribeFromEvent, unsubscribeFromEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String APPLICATION_ATTRIBUTE
protected TextResolver[] textResolvers
Constructor Detail |
---|
protected FacesApplication(AppStartupListener startupListener)
protected FacesApplication()
Method Detail |
---|
protected abstract DataSource getAppDataSource(DBDatabase db)
protected abstract void init(javax.servlet.ServletContext fc)
protected void initComplete(javax.servlet.ServletContext servletContext)
public void onChangeView(javax.faces.context.FacesContext fc, String viewId)
public void addJavascriptCall(javax.faces.context.FacesContext fc, String function)
public String getWebRoot()
public Locale getContextLocale(javax.faces.context.FacesContext ctx)
public boolean hasError(javax.faces.context.FacesContext fc)
fc
- the FacesContext
public boolean isPartialSubmit(javax.faces.context.FacesContext fc)
fc
- the Faces Context
public String getPartialSubmitComponentId(javax.faces.context.FacesContext fc)
fc
- the Faces Context
public javax.faces.component.UIComponent findComponent(javax.faces.context.FacesContext fc, String componentId, javax.faces.component.UIComponent nearComponent)
fc
- the FacesContextcomponentId
- the component idnearComponent
- a component within the same naming container from which to start the search (optional)
public static javax.faces.component.UIComponent findChildComponent(javax.faces.component.UIComponent parent, String componentId)
parent
- the parentcomponentId
- the component id
public String getDefaultControlType(DataType dataType)
dataType
-
InputControlManager
protected void initTextResolvers()
public TextResolver getTextResolver(Locale locale)
public TextResolver getTextResolver(javax.faces.context.FacesContext ctx)
public ResourceBundle getResourceBundle(javax.faces.context.FacesContext fc, String var)
getResourceBundle
in class com.sun.faces.application.ApplicationImpl
Application.getResourceBundle(javax.faces.context.FacesContext,
String)
protected Connection getConnection(DBDatabase db)
protected void releaseConnection(DBDatabase db, Connection conn, boolean commit)
public Connection getConnectionForRequest(javax.faces.context.FacesContext fc, DBDatabase db)
public void releaseAllConnections(javax.faces.context.FacesContext fc, boolean commit)
fc
- the FacesContextcommit
- when true changes are committed otherwise they are rolled backpublic void releaseAllConnections(javax.faces.context.FacesContext fc)
public void releaseConnection(javax.faces.context.FacesContext fc, DBDatabase db, boolean commit)
public void releaseConnection(javax.faces.context.FacesContext fc, DBDatabase db)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |