public class InvokeCommand extends BaseAjaxCommand
The managed bean method called is responsible for writing the response by getting hold of the JSF ResponseWriter. Parameters can also be retrieved via the JSF ExternalContext object.
In a future release (if required) annotations may be used to state what content type to use for the response.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InvokeCommand.ResponseMimetype
Annotation for a bean method that handles an ajax request.
|
logger| Constructor and Description |
|---|
InvokeCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(javax.faces.context.FacesContext facesContext,
java.lang.String expression,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Invokes the relevant method on the bean represented by the given
expression.
|
makeBindingExpressionpublic void execute(javax.faces.context.FacesContext facesContext,
java.lang.String expression,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
AjaxCommandfacesContext - FacesContextexpression - The binding expressionrequest - The requestresponse - The responsejavax.servlet.ServletExceptionjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.