| java.lang.Object com.nabhinc.portlet.mvcportlet.core.BaseRequestProcessor com.nabhinc.portlet.mvcportlet.common.BaseAttributeSetter
All known Subclasses: com.nabhinc.portlet.mvcportlet.renderprocessor.AttributeSetter, com.nabhinc.portlet.mvcportlet.actionprocessor.AttributeSetter,
BaseAttributeSetter | public class BaseAttributeSetter extends BaseRequestProcessor (Code) | | Sets attribute values from request parameters or preferences. For setting attributes
from request parameters, the action processor is
configured as follows:
<action-processor name="AttrSetter"
class="com.nabhinc.portlet.mvcportlet.actionprocessor.AttributeSetter">
<params>param1,param2,param3</params>
<scope>scopeString</scope>
<attributes>attr1,attr2,attr3</attributes>
</action-processor>
"params" is a comma separated list of request parameters. If you want to set attributes
from portlet preferences, use "prefs" tag. Only one of these two tags can be specified at a time.
"scope" must be request , portlet_session , application_session or portlet_context .
If the "scope" is not set, and this processor is mapped to a form, then the
form element's scope, if specified, will be used. Otherwise, portlet_session scope is
assumed.
"attributes" is a comma separated list of attribute names. If this is ommitted
attribute names are assumed to be the same names as the parameter names.
author: Padmanabh Dabke author: (c) 2006 Nabh Information Systems, Inc. All Rights Reserved. since: 1.1 |
Method Summary | |
public void | init(Element config, ControllerPortletConfig controllerConfig) Requires params element to be specified. | public String | process(PortletRequest request, PortletResponse response, RequestConfig actionConfig) Processes the request's parameters and sets them as attributes to the
specified scope. |
process | public String process(PortletRequest request, PortletResponse response, RequestConfig actionConfig) throws PortletException, IOException(Code) | | Processes the request's parameters and sets them as attributes to the
specified scope. success is always returned.
Parameters: request - Parameters: response - Parameters: actionConfig - success throws: PortletException - throws: IOException - |
|
|