Sun Java Studio Creator 2 – Online Help
 

Hidden Field Component

See Also | Tutorials

You can drag the Hidden Field component hidden field icon from the Palette's Basic category to the Visual Designer to create a hidden text field. A hidden field is a form field that is not visible, but can be used to pass data to the server as well as to hold data that can be interpreted by Javascript on the page. A typical use of a hidden field is to store session data in the page as an alternative to using the Session bean to store the data. For example, you might use a hidden field to pass the primary key of the current row back to the same  page, instead of saving and restoring it in session scope.

A Hidden Field component is equivalent to the HTML tag <input type='hidden'>. The value of the field is the data the field stores and passes back to the server when the form is submitted.

Since the field is hidden, the component does not appear on the page, but it does appear in the Outline window. You can select the hidden field in the Outline window and right-click it to open its pop-up menu.

After adding a hidden field to a page, you can do a number of things with it:

See Also
Binding Component Properties
Working With Components
Component Tasks: Quick Reference
Component Web Tutorials
Data Source Web Tutorials
About the Palette
Tutorials
Delving Into Components Tutorial
 
 
 
Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Close