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(FacesContext facesContext,
String expression,
HttpServletRequest request,
HttpServletResponse response)
Invokes the relevant method on the bean represented by the given
expression.
|
makeBindingExpression
public void execute(FacesContext facesContext, String expression, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
AjaxCommand
facesContext
- FacesContextexpression
- The binding expressionrequest
- The requestresponse
- The responseServletException
IOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.