|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.form.html.Hidden
public class Hidden
The Hidden is a TransformationBean that generates the appropriate HTML 4.0 for creating hidden HTML input fields. Hidden fields should not be rendered on the client and provide a means for servers to store state information with a form. This will be passed back to the server when the form is submitted. This is a workaround for the statelessness of HTTP.
The Hidden is one of several TransformationBeans that rely on a set of style classes that are used by default when generating the resulting markup language. For more information on style sheets and the default style classes that apply to this TransformationBean, refer to the AppDev Studio Developer Site. You'll find a useful reference document entitled Cascading Style Sheets, Images, and TransformationBeans as well as the TransformationBeans Style Sheet Reference.
Note that the toString() method on this class calls the write
method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Examples for this class may be found on the Examples Site.
JSP custom tags provide an alternative to using the TransformationBeans. Visit the Custom Tag Library Reference for additional information on the sas:Hidden custom tag.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
Field Summary |
---|
Fields inherited from class com.sas.servlet.tbeans.form.BaseFormElement |
---|
RB_KEY |
Constructor Summary | |
---|---|
Hidden()
Constructs a new Hidden Transformation Bean |
|
Hidden(java.lang.String name,
java.lang.String value)
Constructs a new Hidden Transformation Bean with a specified name and value. |
Method Summary | |
---|---|
void |
write(java.io.PrintWriter out)
Writes the transformed representation of the object |
Methods inherited from class com.sas.servlet.tbeans.form.BaseHidden |
---|
getText, setText |
Methods inherited from interface com.sas.servlet.tbeans.StyleInterface |
---|
getStyleInfo, setStyleInfo |
Constructor Detail |
---|
public Hidden()
public Hidden(java.lang.String name, java.lang.String value)
name
- The hidden field namevalue
- The hidden field valueMethod Detail |
---|
public void write(java.io.PrintWriter out) throws java.io.IOException
write
in interface TransformationInterface
write
in interface com.sas.util.WriteToPrintWriterInterface
write
in class BaseFormElement
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurs
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |