Codota Logo
SelectTag.typeRequiresMultiple
Code IndexAdd Codota to your IDE (free)

How to use
typeRequiresMultiple
method
in
org.springframework.web.servlet.tags.form.SelectTag

Best Java code snippets using org.springframework.web.servlet.tags.form.SelectTag.typeRequiresMultiple (Showing top 2 results out of 315)

  • Common ways to obtain SelectTag
private void myMethod () {
SelectTag s =
  • Codota IconOptionTag optionTag;OptionTag optionTag2;(SelectTag) optionTag.findAncestorWithClass(optionTag2, SelectTag.class)
  • Codota IconOptionsTag optionsTag;OptionsTag optionsTag2;(SelectTag) optionsTag.findAncestorWithClass(optionsTag2, SelectTag.class)
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

/**
 * Returns '{@code true}' if the bound value requires the
 * resultant '{@code select}' tag to be multi-select.
 */
private boolean forceMultiple() throws JspException {
  BindStatus bindStatus = getBindStatus();
  Class<?> valueType = bindStatus.getValueType();
  if (valueType != null && typeRequiresMultiple(valueType)) {
    return true;
  }
  else if (bindStatus.getEditor() != null) {
    Object editorValue = bindStatus.getEditor().getValue();
    if (editorValue != null && typeRequiresMultiple(editorValue.getClass())) {
      return true;
    }
  }
  return false;
}
origin: org.springframework/spring-webmvc

/**
 * Returns '{@code true}' if the bound value requires the
 * resultant '{@code select}' tag to be multi-select.
 */
private boolean forceMultiple() throws JspException {
  BindStatus bindStatus = getBindStatus();
  Class<?> valueType = bindStatus.getValueType();
  if (valueType != null && typeRequiresMultiple(valueType)) {
    return true;
  }
  else if (bindStatus.getEditor() != null) {
    Object editorValue = bindStatus.getEditor().getValue();
    if (editorValue != null && typeRequiresMultiple(editorValue.getClass())) {
      return true;
    }
  }
  return false;
}
org.springframework.web.servlet.tags.formSelectTagtypeRequiresMultiple

Javadoc

Returns ' true' for arrays, Collectionand Map.

Popular methods of SelectTag

  • getItems
    Get the value of the ' items' attribute.May be a runtime expression.
  • forceMultiple
    Returns ' true' if the bound value requires the resultant ' select' tag to be multi-select.
  • getBindStatus
  • getItemLabel
    Get the value of the ' itemLabel' attribute.May be a runtime expression.
  • getItemValue
    Get the value of the ' itemValue' attribute.May be a runtime expression.
  • getMultiple
    Get the value of the HTML ' multiple' attribute rendered on the final ' select' element.
  • getName
  • getSize
    Get the value of the ' size' attribute.
  • isHtmlEscape
  • processFieldValue
  • writeDefaultAttributes
  • doFinally
    Clears the TagWriter that might have been left over when using nested OptionTag.
  • writeDefaultAttributes,
  • doFinally,
  • evaluate,
  • getDisplayString,
  • isMultiple,
  • writeHiddenTagIfNecessary,
  • <init>,
  • doEndTag,
  • doStartTag

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now