JSF Common Component Properties

See Also | Tutorials

A property determines how a component looks and behaves. For example, a button has a text property that specifies the label that is displayed on the button. Properties can be set in the Properties window, in 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, such as 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 &lt;, &gt;, and &amp;.

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.

See Also
About Components
Using Cascading Style Sheets
Component Tasks: Quick Reference
Properties Window
Tutorials

Legal Notices