|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectApplicationFactory
PageFlowApplicationFactory
public class PageFlowApplicationFactory
JavaServer Faces application factory that enables Page Flow integration. It is activated like this in faces-config.xml:
<factory>
<application-factory>org.apache.beehive.netui.pageflow.faces.PageFlowApplicationFactory</application-factory>
</factory>
JSF/Page Flow integration has the following features:
action
attribute, like this:
<h:commandLink action="someAction" value="raise a Page Flow action"/>
The component can send a form bean to the action by adding a "submitFormBean" attribute with a binding
expression that will determine the bean instance:
<h:commandLink action="someAction" value="submit a form bean to a Page Flow action">
<f:attribute name="submitFormBean" value="backing.theForm"/>
</h:commandLink>
In the example above, the value returned from the backing bean's getTheForm
method will be
sent to the "someAction" action in the page flow.
FacesBackingBean
instance will be created whenever a
corresponding JSF path is requested (e.g., an instance of FacesBackingBean-derived foo.MyPage will be created
for the webapp-relative path "/foo/MyPage.faces"). The instance will be released (removed from the user
session) when a non-matching path is requested. A faces backing bean can hold component references and
event/command handlers, and it can raise actions with normal JSF command event handlers that are annotated
with @Jpf.CommandHandler
.
The bean instance can be bound to with a JSF-style expression like #{backing.myComponent}
.
currentPage
or
previousPage
values for
navigateTo
on @Jpf.Forward
, the page's backing
bean and component tree are restored.
Constructor Summary | |
---|---|
PageFlowApplicationFactory(ApplicationFactory delegate)
|
Method Summary | |
---|---|
Application |
getApplication()
|
void |
setApplication(Application application)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageFlowApplicationFactory(ApplicationFactory delegate)
Method Detail |
---|
public Application getApplication()
getApplication
in class ApplicationFactory
public void setApplication(Application application)
setApplication
in class ApplicationFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |