Java Code Examples for org.springframework.web.servlet.support.RequestDataValueProcessor#processFormFieldValue()
The following examples show how to use
org.springframework.web.servlet.support.RequestDataValueProcessor#processFormFieldValue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractDataBoundFormElementTag.java From spring-analysis-note with MIT License | 5 votes |
/** * Process the given form field through a {@link RequestDataValueProcessor} * instance if one is configured or otherwise returns the same value. */ protected final String processFieldValue(@Nullable String name, String value, String type) { RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor(); ServletRequest request = this.pageContext.getRequest(); if (processor != null && request instanceof HttpServletRequest) { value = processor.processFormFieldValue((HttpServletRequest) request, name, value, type); } return value; }
Example 2
Source File: AbstractDataBoundFormElementTag.java From java-technology-stack with MIT License | 5 votes |
/** * Process the given form field through a {@link RequestDataValueProcessor} * instance if one is configured or otherwise returns the same value. */ protected final String processFieldValue(@Nullable String name, String value, String type) { RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor(); ServletRequest request = this.pageContext.getRequest(); if (processor != null && request instanceof HttpServletRequest) { value = processor.processFormFieldValue((HttpServletRequest) request, name, value, type); } return value; }
Example 3
Source File: AbstractDataBoundFormElementTag.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Process the given form field through a {@link RequestDataValueProcessor} * instance if one is configured or otherwise returns the same value. */ protected final String processFieldValue(String name, String value, String type) { RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor(); ServletRequest request = this.pageContext.getRequest(); if (processor != null && (request instanceof HttpServletRequest)) { value = processor.processFormFieldValue((HttpServletRequest) request, name, value, type); } return value; }
Example 4
Source File: AbstractDataBoundFormElementTag.java From spring4-understanding with Apache License 2.0 | 5 votes |
/** * Process the given form field through a {@link RequestDataValueProcessor} * instance if one is configured or otherwise returns the same value. */ protected final String processFieldValue(String name, String value, String type) { RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor(); ServletRequest request = this.pageContext.getRequest(); if (processor != null && (request instanceof HttpServletRequest)) { value = processor.processFormFieldValue((HttpServletRequest) request, name, value, type); } return value; }