|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsunlabs.brazil.template.Template
sunlabs.brazil.template.FormClientTemplate
public class FormClientTemplate
[Deprecated, use the FormTemplate and SetTemplate instead]
SAMPLE Template class for substituting Default values into html forms
The data is retrieved from the client, and sent back to
the client later on. This will be used for e-business cards
stored on java rings/cards. This template also incorporates the functionallity
of the PropsTemplate, as the current scheme doesn't allow composition of
template handler classes (at least for now).
If a URL contains query data, and the value of the server
property "uploadContains" occurs in the URL, then all of the query data
is saved in the server on behalf of the client. IF no "uploadContains"
string is set, all query data is saved on the server.
The following Html entities processed by this class:
Field Summary |
---|
Fields inherited from class sunlabs.brazil.template.Template |
---|
debug |
Constructor Summary | |
---|---|
FormClientTemplate()
|
Method Summary | |
---|---|
boolean |
init(RewriteContext hr)
Save a reference to our request properties. |
void |
tag_input(RewriteContext hr)
Look for , and replace the value with the entry in the previously saved client data. |
void |
tag_property(RewriteContext hr)
Convert the html tag "property" in to the request's property. |
void |
tag_slash_tag(RewriteContext hr)
|
void |
tag_subst(RewriteContext hr)
Tag to do substitution of previously uploaded data. |
void |
tag_tag(RewriteContext hr)
Using the current scheme, there is no easy way to substitute into a tag parameter. |
Methods inherited from class sunlabs.brazil.template.Template |
---|
debug, debug, done |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormClientTemplate()
Method Detail |
---|
public boolean init(RewriteContext hr)
init
in interface TemplateInterface
init
in class Template
public void tag_input(RewriteContext hr)
h
- The attribute/value pairs for this entity.public void tag_property(RewriteContext hr)
h
- Hashtable containing tag parameters
"name" The property name
"default" a default value, if no name availablepublic void tag_subst(RewriteContext hr)
name
- The name of the token to replace with client data.public void tag_tag(RewriteContext hr)
public void tag_slash_tag(RewriteContext hr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |