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

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

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

origin: spring-projects/spring-framework

@Test
public void withNestedOptions() throws Exception {
  this.tag.setPath("country");
  int result = this.tag.doStartTag();
  assertEquals(Tag.EVAL_BODY_INCLUDE, result);
  BindStatus value = (BindStatus) getPageContext().getAttribute(SelectTag.LIST_VALUE_PAGE_ATTRIBUTE);
  assertEquals("Selected country not exposed in page context", "UK", value.getValue());
  result = this.tag.doEndTag();
  assertEquals(Tag.EVAL_PAGE, result);
  this.tag.doFinally();
  String output = getOutput();
  assertTrue(output.startsWith("<select "));
  assertTrue(output.endsWith("</select>"));
  assertContainsAttribute(output, "name", "country");
}
origin: huangjian888/jeeweb-mybatis-springboot

@Override
public void doFinally() {
  super.doFinally();
  this.bindStatus = null;
}
org.springframework.web.servlet.tags.formSelectTagdoFinally

Javadoc

Clears the TagWriter that might have been left over when using nested OptionTag.

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
  • evaluate
  • writeDefaultAttributes,
  • evaluate,
  • getDisplayString,
  • isMultiple,
  • typeRequiresMultiple,
  • writeHiddenTagIfNecessary,
  • <init>,
  • doEndTag,
  • doStartTag

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JFileChooser (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
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