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 AssignPropertyBindingTag extends ComponentLogicTag 38 { 39 private static final long serialVersionUID = 3257850991142318897L; 40 41 private String propertyName; 42 private boolean createNew = false; 43 private String html; 44 private boolean showInPublishedMode = false; 45 46 public AssignPropertyBindingTag() 47 { 48 super(); 49 } 50 51 public int doEndTag() throws JspException 52 { 53 produceResult(this.getController().getAssignPropertyBindingTag(propertyName, createNew, html, showInPublishedMode)); 54 55 return EVAL_PAGE; 56 } 57 58 public void setPropertyName(final String propertyName) throws JspException 59 { 60 this.propertyName = evaluateString("AssignPropertyBindingTag", "propertyName", propertyName); 61 } 62 63 public void setCreateNew(boolean createNew) 64 { 65 this.createNew = createNew; 66 } 67 68 public void setHtml(final String html) throws JspException 69 { 70 this.html = evaluateString("EditOnSightTag", "html", html); 71 } 72 73 public void setShowInPublishedMode(boolean showInPublishedMode) 74 { 75 this.showInPublishedMode = showInPublishedMode; 76 } 77 } | Popular Tags |