Newer Version Available

This content describes an older version of this product. View Latest

Best Practices for Page Block Components

Adding More than Two Child Components to <apex:pageBlockSectionItem>
An <apex:pageBlockSectionItem> component can only have up to two child components. Sometimes, though, you want to add an extra child component. For example, you may want to add an asterisk before an <apex:outputLabel> and still display the associated input text field. You can do this by wrapping the asterisk and output label in an <apex:outputPanel> component, as follows:

For this page to display account data, the ID of a valid account record must be specified as a query parameter in the URL for the page. For example:

Note