<apex: outputPanel> Component in Visualforce PageThe <apex: outputPanel> is another most used component on the Visualforce page that acts as a container. We cannot render a set of content grouped with HTML tags such as span or div. To perform AJAX refreshes, we use the <apex: outputPanel> component to group components. This component supports HTML pass-through attributes by using the "html" prefix. The generated attributes are attached to the generated container tag, such as div or span depending on the value of the layout attribute. The <apex: outputPanel> component has the following attributes on the Visualforce page: 1. dir The dir is a string-type attribute used to specify the direction in which the generated HTML component should be read. LTR and RTL are the two possible values for this attribute. Syntax: 2. id The id is a string-type attribute, i.e., a unique identifier that allows this component to be referenced by other components on the page. Syntax: 3. layout The layout is a string-type attribute used to specify the layout style for the panel. These are the possible values for this attribute:
By default, its value is set to inline. Syntax: 4. lang The lang is a string-type attribute that specifies the base language used for the generated HTML output. The values can be "en" or "en-US" etc. Syntax: 5. onclick The onclick is another string-type attribute used to specify the JavaScript method invoked when the onclick event occurs or simply when the user clicks the output panel. Syntax: |