| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.struts.action.Action
com.cc.framework.adapter.struts.FWAction
Encapsulation of the struts action for the common controls framework
Action| Field Summary | |
private static org.apache.commons.logging.Log | 
fwlog
Private Logger instance  | 
protected  org.apache.commons.logging.Log | 
log
Commons Logging instance.  | 
| Fields inherited from class org.apache.struts.action.Action | 
servlet | 
| Constructor Summary | |
FWAction()
Constructor  | 
|
| Method Summary | |
 void | 
applyControlStates(ActionContext ctx)
Applies the serialized control state from the HTTPRequest to the corresponding control instances.  | 
 void | 
cleanup(ActionContext ctx)
This method do some cleanup after the action finished.  | 
 ActionContext | 
createActionContext(org.apache.struts.action.ActionMapping mapping,
                    org.apache.struts.action.ActionForm form,
                    javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
This method is called to create the ActionContext wrapper.  | 
 void | 
doPostExecute(ActionContext ctx)
A template method.  | 
 boolean | 
doPreExecute(ActionContext ctx)
A template method.  | 
 void | 
doRenderAjaxResponse(ActionContext ctx,
                     javax.servlet.jsp.PageContext pageContext)
Renders the AJAX XML response  | 
 void | 
doSetMenuContext(ActionContext ctx,
                 MenuContext menuCtx)
Sets the menu context.  | 
 void | 
execute(ActionContext ctx)
This method is called instead the struts execute.  | 
 org.apache.struts.action.ActionForward | 
execute(org.apache.struts.action.ActionMapping mapping,
        org.apache.struts.action.ActionForm form,
        javax.servlet.http.HttpServletRequest request,
        javax.servlet.http.HttpServletResponse response)
This method gets called when no FWRequestProcessor is used!  | 
 java.lang.reflect.Method | 
getActionHandler(ControlActionContext ctx,
                 java.lang.Object[] params)
Searches the action class for a handler method.  | 
 Control | 
getControlByName(ActionContext ctx,
                 java.lang.String name)
The framework has a default pattern where to search a control instance.  | 
 DialogContext | 
getDialogContext(ActionContext ctx,
                 boolean create)
Returns or creates a dialog context  | 
 ActionContext | 
handleControlAction(ActionContext ctx,
                    ControlMethodInvocation cmi)
Handles an action which comes from a control on the form an delegates the request to the control.  | 
 void | 
handleControlAction(ControlActionContext ctx,
                    java.lang.Object[] params)
Handles an action which comes from a control on the form.  | 
 ActionContext | 
handleFormAction(ActionContext ctx)
Checks if the request comes from a form button (save, cancel, ...) and delegates the request to the corresponding handler for the button which must be implemented in the (action) subclass.  | 
 void | 
setControlValue(ActionContext ctx,
                ControlValuePath path,
                java.lang.String[] values)
This method is called to set a control element value  | 
 void | 
setControlValuesFromRequest(ActionContext ctx)
This method is called to updates any control element data from request values.  | 
| Methods inherited from class org.apache.struts.action.Action | 
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface com.cc.framework.adapter.struts.FrameworkAction | 
doExecute | 
| Field Detail | 
protected org.apache.commons.logging.Log log
private static org.apache.commons.logging.Log fwlog
| Constructor Detail | 
public FWAction()
| Method Detail | 
public void cleanup(ActionContext ctx)
FrameworkAction
cleanup in interface FrameworkActionctx - ActionContextFrameworkAction.cleanup(com.cc.framework.adapter.struts.ActionContext)
public Control getControlByName(ActionContext ctx,
                                java.lang.String name)
                         throws java.lang.Exception
FrameworkAction
getControlByName in interface FrameworkActionctx - The ActionContextname - The name of the bean
java.lang.Exception - If an exception occurredFrameworkAction.getControlByName(com.cc.framework.adapter.struts.ActionContext, java.lang.String)
public void applyControlStates(ActionContext ctx)
                        throws java.lang.Exception
FrameworkAction
applyControlStates in interface FrameworkActionctx - ActionContext
java.lang.Exception - if an exception occursFrameworkAction.applyControlStates(com.cc.framework.adapter.struts.ActionContext)
public ActionContext handleControlAction(ActionContext ctx,
                                         ControlMethodInvocation cmi)
                                  throws java.lang.Exception
FrameworkAction
handleControlAction in interface FrameworkActionctx - ActionContextcmi - ControlMethodInvocation
java.lang.Exception - if an exception occursFrameworkAction.handleControlAction(com.cc.framework.adapter.struts.ActionContext, com.cc.framework.ui.control.ControlMethodInvocation)
public void handleControlAction(ControlActionContext ctx,
                                java.lang.Object[] params)
                         throws java.lang.Exception
FrameworkAction
handleControlAction in interface FrameworkActionctx - ControlRequestContextparams - Parameters
java.lang.Exception - if an exception occursFrameworkAction.handleControlAction(com.cc.framework.ui.control.ControlActionContext, java.lang.Object[])
public java.lang.reflect.Method getActionHandler(ControlActionContext ctx,
                                                 java.lang.Object[] params)
FrameworkAction
getActionHandler in interface FrameworkActionctx - the action contextparams - actual parameters
null when no such method
         is definedFrameworkAction.getActionHandler(com.cc.framework.ui.control.ControlActionContext, java.lang.Object[])
public void setControlValue(ActionContext ctx,
                            ControlValuePath path,
                            java.lang.String[] values)
                     throws java.lang.Exception
FrameworkAction
setControlValue in interface FrameworkActionctx - The ActionContextpath - The Pathname of the valuevalues - The value itself
java.lang.Exception - is thrown when a value could not be setFrameworkAction.setControlValue(com.cc.framework.adapter.struts.ActionContext, com.cc.framework.ui.control.ControlValuePath, java.lang.String[])
public void setControlValuesFromRequest(ActionContext ctx)
                                 throws java.lang.Exception
FrameworkActionControlValuePath
setControlValuesFromRequest in interface FrameworkActionctx - The ActionContext
java.lang.Exception - is thrown when a value could not be setFrameworkAction.setControlValuesFromRequest(com.cc.framework.adapter.struts.ActionContext)
public ActionContext handleFormAction(ActionContext ctx)
                               throws java.lang.Exception
FrameworkAction
handleFormAction in interface FrameworkActionctx - The ActionContext
java.lang.Exception - If an exception occurredFrameworkAction.handleFormAction(com.cc.framework.adapter.struts.ActionContext)
public DialogContext getDialogContext(ActionContext ctx,
                                      boolean create)
getDialogContext in interface FrameworkActionctx - The ActionContextcreate - Indicates if an existing context should be returned (false); otherwise a new context is started (true)
public boolean doPreExecute(ActionContext ctx)
                     throws java.lang.Exception
FrameworkAction
doPreExecute in interface FrameworkActionctx - The ActionContext
java.lang.Exception - If an exception occurredFrameworkAction.doPreExecute(com.cc.framework.adapter.struts.ActionContext)
public void doPostExecute(ActionContext ctx)
                   throws java.lang.Exception
FrameworkAction
doPostExecute in interface FrameworkActionctx - The ActionContext
java.lang.Exception - If an exception occurredFrameworkAction.doPostExecute(com.cc.framework.adapter.struts.ActionContext)
public void doSetMenuContext(ActionContext ctx,
                             MenuContext menuCtx)
                      throws java.lang.Exception
FrameworkAction
doSetMenuContext in interface FrameworkActionctx - The ActionContextmenuCtx - The MenuContext
java.lang.Exception - If an exception occurredFrameworkAction.doSetMenuContext(com.cc.framework.adapter.struts.ActionContext, com.cc.framework.ui.control.MenuContext)
public ActionContext createActionContext(org.apache.struts.action.ActionMapping mapping,
                                         org.apache.struts.action.ActionForm form,
                                         javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response)
FrameworkAction
createActionContext in interface FrameworkActionmapping - Struts Action Mappingform - Struts Action Formrequest - HTTPServletRequestresponse - HTTPServletResponse
FrameworkAction.createActionContext(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public void execute(ActionContext ctx)
             throws java.lang.Exception
FrameworkAction
execute in interface FrameworkActionctx - ActionContext
java.lang.Exception - if an exception occursFrameworkAction.execute(com.cc.framework.adapter.struts.ActionContext)
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws java.lang.Exception
java.lang.ExceptionAction.execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public void doRenderAjaxResponse(ActionContext ctx,
                                 javax.servlet.jsp.PageContext pageContext)
                          throws java.lang.Exception
FrameworkAction
doRenderAjaxResponse in interface FrameworkActionctx - ActionContextpageContext - PageContext
java.lang.Exception - Indicates an error during renderingFrameworkAction.doRenderAjaxResponse(com.cc.framework.adapter.struts.ActionContext, javax.servlet.jsp.PageContext)
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||