public interface ComponentSource
Modifier and Type | Method and Description |
---|---|
Component |
getActivePage()
Returns the active page, as defined by
RequestGlobals.getActivePageName() . |
Component |
getComponent(String completeId)
Gets a component by its complete id.
|
Component |
getPage(Class pageClass)
A convienience for obtaining a page instance via a class instance.
|
Component |
getPage(String pageName)
Returns the page identified by its logical page name.
|
Component getComponent(String completeId)
completeId
- complete component id (case insensitive)IllegalArgumentException
- if the component can not be foundComponentResourcesCommon.getCompleteId()
Component getPage(String pageName)
pageName
- the logical page nameIllegalArgumentException
- if the page can not be foundComponent getPage(Class pageClass)
pageClass
- used to locate the page instanceComponent getActivePage()
RequestGlobals.getActivePageName()
. This is the primary
page for handling the current request, the page which will be activated for
the request.
The identity of the active page is not known until the correct Dispatcher
determines this.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.