1
22
23 package com.liferay.taglib.ui;
24
25 import com.liferay.taglib.util.IncludeTag;
26
27 import javax.servlet.http.HttpServletRequest;
28
29
34 public class CustomAttributeListTag extends IncludeTag {
35
36 public int doStartTag() {
37 HttpServletRequest request =
38 (HttpServletRequest)pageContext.getRequest();
39
40 request.setAttribute(
41 "liferay-ui:custom-attribute-list:className", _className);
42 request.setAttribute(
43 "liferay-ui:custom-attribute-list:classPK",
44 String.valueOf(_classPK));
45 request.setAttribute(
46 "liferay-ui:custom-attribute-list:editable",
47 String.valueOf(_editable));
48 request.setAttribute(
49 "liferay-ui:custom-attribute-list:label", String.valueOf(_label));
50
51 return EVAL_BODY_BUFFERED;
52 }
53
54 public void setClassName(String className) {
55 _className = className;
56 }
57
58 public void setClassPK(long classPK) {
59 _classPK = classPK;
60 }
61
62 public void setEditable(boolean editable) {
63 _editable = editable;
64 }
65
66 public void setLabel(boolean label) {
67 _label = label;
68 }
69
70 protected String getDefaultPage() {
71 return _PAGE;
72 }
73
74 private static final String _PAGE =
75 "/html/taglib/ui/custom_attribute_list/page.jsp";
76
77 private String _className;
78 private long _classPK;
79 private boolean _editable = false;
80 private boolean _label = false;
81
82 }