public class PortletModelAttributeMethodProcessor extends ServletModelAttributeMethodProcessor
ModelAttributeMethodProcessor
that applies data binding through a WebDataBinder of type
PortletRequestDataBinder
.
Also adds a fall-back strategy to instantiate the model attribute from a URI template variable or from a request parameter if the name matches the model attribute name and there is an appropriate type conversion strategy.
logger
Constructor and Description |
---|
PortletModelAttributeMethodProcessor(boolean annotationNotRequired) |
Modifier and Type | Method and Description |
---|---|
protected void |
bindRequestParameters(WebDataBinder binder,
NativeWebRequest request)
This implementation downcasts
WebDataBinder to PortletRequestDataBinder before binding. |
createAttribute, createAttributeFromRequestValue, getRequestValueForAttribute, getUriTemplateVariables
constructAttribute, constructAttribute, handleReturnValue, isBindExceptionRequired, isBindExceptionRequired, resolveArgument, supportsParameter, supportsReturnType, validateIfApplicable, validateValueIfApplicable
public PortletModelAttributeMethodProcessor(boolean annotationNotRequired)
protected void bindRequestParameters(WebDataBinder binder, NativeWebRequest request)
WebDataBinder
to PortletRequestDataBinder
before binding.bindRequestParameters
in class ServletModelAttributeMethodProcessor
PortletRequestDataBinderFactory
Copyright © 2019 Liferay, Inc.. All rights reserved.