1 23 24 package org.infoglue.deliver.taglib.content; 25 26 import javax.servlet.jsp.JspException ; 27 28 import org.infoglue.deliver.taglib.component.ComponentLogicTag; 29 30 36 37 public class EditOnSightTag extends ComponentLogicTag 38 { 39 private static final long serialVersionUID = 3257850991142318897L; 40 41 private Integer contentId; 43 private Integer languageId; 44 private String attributeName; 45 private String html; 46 private boolean showInPublishedMode = false; 47 48 public EditOnSightTag() 49 { 50 super(); 51 } 52 53 public int doEndTag() throws JspException 54 { 55 if(languageId == null) 56 this.languageId = getController().getLanguageId(); 57 58 produceResult(this.getController().getEditOnSightTag(contentId, languageId, attributeName, html, showInPublishedMode)); 59 60 return EVAL_PAGE; 61 } 62 63 74 75 76 public void setContentId(final String contentId) throws JspException 77 { 78 this.contentId = evaluateInteger("EditOnSightTag", "contentId", contentId); 79 } 80 81 public void setLanguageId(final String languageId) throws JspException 82 { 83 this.languageId = evaluateInteger("EditOnSightTag", "languageId", languageId); 84 } 85 86 public void setAttributeName(final String attributeName) throws JspException 87 { 88 this.attributeName = evaluateString("EditOnSightTag", "attributeName", attributeName); 89 } 90 91 public void setHtml(final String html) throws JspException 92 { 93 this.html = evaluateString("EditOnSightTag", "html", html); 94 } 95 96 public void setShowInPublishedMode(boolean showInPublishedMode) 97 { 98 this.showInPublishedMode = showInPublishedMode; 99 } 100 } | Popular Tags |