|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.faces.application.ApplicationHandlerImpl
Concrete implementation of ApplicationHandler
that converts
JavaServer Faces CommandEvent
s and FormEvent
s
into execution of the corresponding Struts request processing lifecycle.
Events are mapped to Struts actions as follows:
commandName
is assumed to be
the path of an Action
to be executed (including the
leading slash).formName
is assumed to be
the path of an Action
to be executed (including the
leading slash). The commandName
property is used to
determine whether or not a cancel button was pressed.
Field Summary | |
protected static org.apache.commons.logging.Log |
log
The logger for this instance. |
protected org.apache.struts.action.ActionServlet |
servlet
The ActionServlet instance of our controller servlet. |
Constructor Summary | |
ApplicationHandlerImpl(org.apache.struts.action.ActionServlet servlet)
Construct a new ApplicationHandler based on the specified
parameters. |
Method Summary | |
boolean |
processCommandEvent(javax.faces.context.FacesContext context,
javax.faces.event.CommandEvent event)
Process the specified CommandEvent . |
boolean |
processEvent(javax.faces.context.FacesContext context,
javax.faces.event.FacesEvent event)
Process an event that has been queued for the application. |
boolean |
processFormEvent(javax.faces.context.FacesContext context,
javax.faces.event.FormEvent event)
Process the specified FormEvent . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
The logger for this instance.
protected org.apache.struts.action.ActionServlet servlet
The ActionServlet instance of our controller servlet.
Constructor Detail |
public ApplicationHandlerImpl(org.apache.struts.action.ActionServlet servlet)
Construct a new ApplicationHandler
based on the specified
parameters.
servlet
- ActionServlet instance we are associated withMethod Detail |
public boolean processEvent(javax.faces.context.FacesContext context, javax.faces.event.FacesEvent event)
Process an event that has been queued for the application. FIXME - does the application need to provide any feedback to the lifecycle state machine?
processEvent
in interface javax.faces.lifecycle.ApplicationHandler
context
- FacesContext for the current requestevent
- FormEvent to be processedpublic boolean processCommandEvent(javax.faces.context.FacesContext context, javax.faces.event.CommandEvent event)
Process the specified CommandEvent
.
context
- FacesContext for the current requestevent
- CommandEvent to be processedpublic boolean processFormEvent(javax.faces.context.FacesContext context, javax.faces.event.FormEvent event)
Process the specified FormEvent
.
FIXME - How do /faces/*
paths
interact with selecting an application module?
FIXME - Make sure that cancel buttons are recognized correctly.
context
- FacesContext for the current requestevent
- FormEvent to be processed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |