1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.struts2.components;
19
20 import javax.servlet.http.HttpServletRequest;
21 import javax.servlet.http.HttpServletResponse;
22
23 import com.opensymphony.xwork2.util.ValueStack;
24
25 /***
26 * <!-- START SNIPPET: javadoc -->
27 *
28 * Creates a series of checkboxes from a list. Setup is like <s:select /> or <s:radio />, but creates checkbox tags.
29 *
30 * <!-- END SNIPPET: javadoc -->
31 *
32 * <p/> <b>Examples</b>
33 *
34 * <pre>
35 * <!-- START SNIPPET: example -->
36 * <s:checkboxlist name="foo" list="bar"/>
37 * <!-- END SNIPPET: example -->
38 * </pre>
39 *
40 * @s.tag name="checkboxlist" tld-body-content="JSP" tld-tag-class="org.apache.struts2.views.jsp.ui.CheckboxListTag"
41 * description="Render a list of checkboxes"
42 */
43 public class CheckboxList extends ListUIBean {
44 final public static String TEMPLATE = "checkboxlist";
45
46 public CheckboxList(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
47 super(stack, request, response);
48 }
49
50 protected String getDefaultTemplate() {
51 return TEMPLATE;
52 }
53 }