001
014
015 package com.liferay.taglib.ui;
016
017 import com.liferay.portal.kernel.util.Validator;
018 import com.liferay.taglib.util.IncludeTag;
019
020 import javax.servlet.http.HttpServletRequest;
021
022
026 @Deprecated
027 public class WriteTag extends IncludeTag {
028
029 public void setBean(Object bean) {
030 _bean = bean;
031 }
032
033 public void setProperty(String property) {
034 _property = property;
035 }
036
037 @Override
038 protected void cleanUp() {
039 _bean = null;
040 _property = null;
041 }
042
043 @Override
044 protected String getPage() {
045 if ((_bean == null) || Validator.isNull(_property)) {
046 return null;
047 }
048 else {
049 return _PAGE;
050 }
051 }
052
053 @Override
054 protected void setAttributes(HttpServletRequest request) {
055 request.setAttribute("liferay-ui:write:bean", _bean);
056 request.setAttribute("liferay-ui:write:property", _property);
057 }
058
059 private static final String _PAGE = "/html/taglib/ui/write/page.jsp";
060
061 private Object _bean;
062 private String _property;
063
064 }