congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SelectTag.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.springframework.web.servlet.tags.form.SelectTag
constructor

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

origin: org.metawidget.modules/metawidget-all

SelectTag select = new SelectTag();
origin: org.metawidget.modules/metawidget-all

private Tag createSelectTag( String expression, Map<String, String> attributes ) {
  // Select tag
  SelectTag select = new SelectTag();
  // Empty option (if needed)
  if ( WidgetBuilderUtils.needsEmptyLookupItem( attributes ) ) {
    OptionTag emptyOption = new OptionTag();
    emptyOption.setValue( "" );
    JspUtils.addDeferredChild( select, emptyOption );
  }
  // Options tag
  OptionsTag optionsTag = new OptionsTag();
  optionsTag.setItems( expression );
  // Optional itemValue and itemLabel
  String itemValue = attributes.get( SPRING_LOOKUP_ITEM_VALUE );
  if ( itemValue != null ) {
    optionsTag.setItemValue( itemValue );
  }
  String itemLabel = attributes.get( SPRING_LOOKUP_ITEM_LABEL );
  if ( itemLabel != null ) {
    optionsTag.setItemLabel( itemLabel );
  }
  JspUtils.addDeferredChild( select, optionsTag );
  return select;
}
org.springframework.web.servlet.tags.formSelectTag<init>

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,
  • typeRequiresMultiple,
  • writeHiddenTagIfNecessary,
  • doEndTag,
  • doStartTag

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • String (java.lang)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Collectors (java.util.stream)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now