1 15 package org.apache.tapestry.form; 16 17 import org.apache.tapestry.IMarkupWriter; 18 import org.apache.tapestry.IRequestCycle; 19 20 27 public abstract class AbstractRequirableField extends AbstractFormComponent implements RequirableField 28 { 29 32 public abstract RequirableFieldSupport getRequirableFieldSupport(); 33 34 38 public abstract void setRequiredMessage(String message); 39 40 43 protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle cycle) 44 { 45 getRequirableFieldSupport().rewind(this, writer, cycle); 46 } 47 48 51 public String getSubmittedValue(IRequestCycle cycle) 52 { 53 return cycle.getParameter(getName()); 54 } 55 56 59 protected void renderFormComponent(IMarkupWriter writer, IRequestCycle cycle) 60 { 61 getRequirableFieldSupport().render(this, writer, cycle); 62 } 63 } 64 | Popular Tags |