| org.apache.struts2.views.velocity.components.AbstractDirective
All known Subclasses: org.apache.struts2.views.velocity.components.WebTableDirective, org.apache.struts2.views.velocity.components.RadioDirective, org.apache.struts2.views.velocity.components.PushDirective, org.apache.struts2.views.velocity.components.ParamDirective, org.apache.struts2.views.velocity.components.HiddenDirective, org.apache.struts2.views.velocity.components.PropertyDirective, org.apache.struts2.views.velocity.components.SelectDirective, org.apache.struts2.views.velocity.components.I18nDirective, org.apache.struts2.views.velocity.components.DivDirective, org.apache.struts2.views.velocity.components.URLDirective, org.apache.struts2.views.velocity.components.UpDownSelectDirective, org.apache.struts2.views.velocity.components.FormDirective, org.apache.struts2.views.velocity.components.SetDirective, org.apache.struts2.views.velocity.components.AutocompleterDirective, org.apache.struts2.views.velocity.components.DateDirective, org.apache.struts2.views.velocity.components.ComboBoxDirective, org.apache.struts2.views.velocity.components.IncludeDirective, org.apache.struts2.views.velocity.components.TabbedPanelDirective, org.apache.struts2.views.velocity.components.PasswordDirective, org.apache.struts2.views.velocity.components.ActionDirective, org.apache.struts2.views.velocity.components.SubmitDirective, org.apache.struts2.views.velocity.components.ResetDirective, org.apache.struts2.views.velocity.components.ComponentDirective, org.apache.struts2.views.velocity.components.OptionTransferSelectDirective, org.apache.struts2.views.velocity.components.LabelDirective, org.apache.struts2.views.velocity.components.TokenDirective, org.apache.struts2.views.velocity.components.TextFieldDirective, org.apache.struts2.views.velocity.components.TreeDirective, org.apache.struts2.views.velocity.components.CheckBoxDirective, org.apache.struts2.views.velocity.components.BeanDirective, org.apache.struts2.views.velocity.components.ActionMessageDirective, org.apache.struts2.views.velocity.components.AnchorDirective, org.apache.struts2.views.velocity.components.ActionErrorDirective, org.apache.struts2.views.velocity.components.FileDirective, org.apache.struts2.views.velocity.components.HeadDirective, org.apache.struts2.views.velocity.components.DoubleSelectDirective, org.apache.struts2.views.velocity.components.InputTransferSelectDirective, org.apache.struts2.views.velocity.components.TreeNodeDirective, org.apache.struts2.views.velocity.components.TextDirective, org.apache.struts2.views.velocity.components.TextAreaDirective, org.apache.struts2.views.velocity.components.FieldErrorDirective, org.apache.struts2.views.velocity.components.OptGroupDirective, org.apache.struts2.views.velocity.components.CheckBoxListDirective,
AbstractDirective | abstract public class AbstractDirective extends Directive (Code) | | |
createPropertyMap | protected Map createPropertyMap(InternalContextAdapter contextAdapter, Node node) throws ParseErrorException, MethodInvocationException(Code) | | create a Map of properties that the user has passed in. for example,
#xxx("name=hello" "value=world" "template=foo")
would yield a params that contains {["name", "hello"], ["value", "world"], ["template", "foo"]}
Parameters: node - the Node passed in to the render method a Map of the user specified properties throws: org.apache.velocity.exception.ParseErrorException - if the was an error in the format of the property |
getType | public int getType()(Code) | | All components, unless otherwise stated, are LINE-level directives.
|
putProperty | protected void putProperty(Map propertyMap, InternalContextAdapter contextAdapter, Node node) throws ParseErrorException, MethodInvocationException(Code) | | adds a given Node's key/value pair to the propertyMap. For example, if this Node contained the value "rows=20",
then the key, rows, would be added to the propertyMap with the String value, 20.
Parameters: propertyMap - a params containing all the properties that we wish to set Parameters: node - the parameter to set expressed in "name=value" format |
render | public boolean render(InternalContextAdapter ctx, Writer writer, Node node) throws IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException(Code) | | |
|
|