Common Component Properties |
A property determines how a component looks and behaves; for example, a button has a color property. Properties can be set in the Properties window, in the Java source code, or in the JSP source code as described in Setting Component Properties.
You can change a component's properties by selecting that component and then editing the property in the Properties window. Some common properties shared by components include the following:
Components that render HTML text have an escape property. For example, Static Text or the text part of components
like Label and Hyperlink have an escape property. This property, if checked,
converts <, >, and & characters
in the input to the HTML entities <, >,
and &.
Many components have JavaScript-related event properties that enable you to develop client-side scripts for your components. These properties are listed under the JavaScript category in the Properties window and include onclick, onchange, and onmouseover. The values of these properties are the JavaScript code (or other client-side scripting code) for those events.
You can change properties in the IDE when you design your pages, or you can query or change the values of any component property in the Java event handlers for your components as your web application runs.
| Legal Notices. Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. |