org.apache.empire.jsf2.pages
Class Page
java.lang.Object
org.apache.empire.jsf2.pages.Page
- All Implemented Interfaces:
- Serializable
public abstract class Page
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Constructor Summary |
protected |
Page()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Page
protected Page()
getPageName
public String getPageName()
getName
public String getName()
isInitialized
public boolean isInitialized()
getAction
public String getAction()
setAction
public void setAction(String actionParam)
getPageDefinition
public PageDefinition getPageDefinition()
setPageDefinition
public void setPageDefinition(PageDefinition pageDefinition)
getParentPage
public PageDefinition getParentPage()
preRenderPage
public void preRenderPage(javax.faces.context.FacesContext context)
checkPageAccess
protected void checkPageAccess()
setSessionMessage
protected void setSessionMessage(javax.faces.application.FacesMessage facesMsg)
handleActionError
protected boolean handleActionError(String action,
Throwable e)
extractErrorMessageDetail
protected String extractErrorMessageDetail(String action,
Throwable e,
int stackTraceElements)
redirectTo
protected void redirectTo(PageOutcome outcome)
registerPageElement
protected void registerPageElement(PageElement element)
- adds a page element to this page
DO NOT CALL yourself, this method is called from the PageElement constructor!
- Parameters:
element
-
getParentOutcome
protected PageOutcome getParentOutcome(String action,
boolean redirect)
- Helper methods for parent outcome
- Parameters:
action
- redirect
-
- Returns:
- the parent outcome string
getParentOutcome
protected PageOutcome getParentOutcome(boolean redirect)
getConnection
public Connection getConnection(DBDatabase db)
- return a connection for a particular database
- Parameters:
db
- the database for which to obtain a connection
- Returns:
- the connection for the given database
getKeyFromParam
public Object[] getKeyFromParam(DBRowSet rowset,
String idParam)
getIdParamForKey
public String getIdParamForKey(DBRowSet rowset,
Object[] key)
addJavascriptCall
public void addJavascriptCall(String function)
doInit
public void doInit()
doRefresh
public void doRefresh()
getTextResolver
protected final TextResolver getTextResolver()
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.