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

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JPanel (javax.swing)
  • 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