1 18 package net.sf.uitags.tag.formGuide; 19 20 import javax.servlet.jsp.JspException ; 21 22 28 public class ObserveTag extends ObserveForNullTag { 29 33 36 private static final long serialVersionUID = 100L; 37 38 39 40 44 47 private String forValue; 48 49 50 51 55 58 public ObserveTag() { 59 super(); 60 } 61 62 63 64 68 73 public void setForValue(String val) { 74 this.forValue = val; 75 } 76 77 78 79 83 89 protected final void doEndTagWithoutRuntimeValidation() { 90 FormGuideTag formGuideTag = (FormGuideTag) findParent(FormGuideTag.class); 91 if (this.elementId != null) { 92 formGuideTag.addObservedElementId(this.elementId, this.forValue); 93 } 94 else if (this.elementName != null) { 95 formGuideTag.addObservedElementName(this.elementName, this.forValue); 96 } 97 } 98 } 99 | Popular Tags |