Class CheckboxList


public class CheckboxList extends ListUIBean
Creates a series of checkboxes from a list. Setup is like <s:select /> or <s:radio />, but creates checkbox tags.

Examples

 
 <s:checkboxlist name="foo" list="bar"/>
 
 
  • Field Details

  • Constructor Details

    • CheckboxList

      public CheckboxList(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.
    • evaluateExtraParams

      public void evaluateExtraParams()
      Overrides:
      evaluateExtraParams in class ListUIBean
    • lazyEvaluation

      protected boolean lazyEvaluation()
      Checkboxlist tag requires lazy evaluation as list of tags is dynamically generated using <s:iterator/>
      Overrides:
      lazyEvaluation in class UIBean
      Returns:
      boolean true by default