public class FormTemplate extends Template
value
attribute must be present.
additional information is provided below.
If the enclosing <form> tag has the attribute "prepend", then "prepend" is tacked on the front of each variable name before its value is looked-up. The "prepend" attribute is then removed from the form tag.
Constructor and Description |
---|
FormTemplate() |
Modifier and Type | Method and Description |
---|---|
boolean |
done(RewriteContext hr)
This is for debugging only !!
|
boolean |
init(RewriteContext hr)
Save a reference to our request properties.
|
void |
tag_form(RewriteContext hr)
Look for a "prepend" attrubute, remember its value, then remove it
from the tag.
|
void |
tag_input(RewriteContext hr)
Look for <input name=[x] value=[v]> and replace the
value with the entry in the request properties.
|
void |
tag_option(RewriteContext hr)
Look at the option tag, set the "selected" attribute as needed.
|
void |
tag_select(RewriteContext hr)
Remember the variable name for the next group of option tags.
|
void |
tag_slash_form(RewriteContext hr)
Forget about the "prepend" value
|
void |
tag_slash_select(RewriteContext hr)
Forget the variable name for the next group of option tags
|
public boolean init(RewriteContext hr)
init
in interface TemplateInterface
init
in class Template
public void tag_form(RewriteContext hr)
public void tag_slash_form(RewriteContext hr)
public void tag_input(RewriteContext hr)
value
contains any ${..} constructs, the substituted
value is used instead of the value in the corrosponding request property.public void tag_select(RewriteContext hr)
public void tag_slash_select(RewriteContext hr)
public void tag_option(RewriteContext hr)
public boolean done(RewriteContext hr)
done
in interface TemplateInterface
done
in class Template