Class Hidden


public class Hidden extends UIBean
Renders an HTML input element of type hidden, populated by the specified property from the ValueStack.

Examples

 
 <-- example one -->
 <s:hidden name="foo" />
 <-- example two -->
 <s:hidden name="foo" value="%{bar}" />

 Example One Resulting HTML (if foo evaluates to bar):
 <input type="hidden" name="foo" value="bar" />
 Example Two Resulting HTML (if getBar method of the action returns 'bar')
 <input type="hidden" name="foo" value="bar" />
 
 
  • Field Details

  • Constructor Details

    • Hidden

      public Hidden(ValueStack stack, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
  • Method Details

    • getDefaultTemplate

      protected String getDefaultTemplate()
      Description copied from class: UIBean
      A contract that requires each concrete UI Tag to specify which template should be used as a default. For example, the CheckboxTab might return "checkbox.vm" while the RadioTag might return "radio.vm". This value not begin with a '/' unless you intend to make the path absolute rather than relative to the current theme.
      Specified by:
      getDefaultTemplate in class UIBean
      Returns:
      The name of the template to be used as the default.
    • getControlType

      protected HtmlControlType getControlType()
      Description copied from class: UIBean
      The kind of HTML control this component renders, used to decide which HTML5 constraint attributes are legal on it. Defaults to HtmlControlType.UNSUPPORTED, which supports no constraints — so a component that does not override this emits none.
      Overrides:
      getControlType in class UIBean