ApexComponent

Represents a definition for a custom component that can be used in a Visualforce page alongside standard components such as <apex:relatedList> and <apex:dataTable>. For information, see the Visualforce Developers Guide.

Supported Calls

create(), update(), delete(), query(), retrieve(), describeSObjects(), getDeleted(), getUpdated()

Fields

Field Field Type Field Properties Description
ApiVersion double Create

Filter

Update

The API version for this custom component. Every custom component has an API version specified at creation. If the Salesforce.com API version is less than 15.0 and ApiVersion is not specified, ApiVersion defaults to 15.0.
ControllerKey string Create

Filter

Nillable

Update

The identifier for the controller associated with this custom component:
  • If the ControllerType parameter is set to Standard or StandardSet, this value is the name of the sObject that defines the controller.
  • If the ControllerType parameter is set to Custom, this value is the name of the Apex class that defines the controller.
ControllerType picklist Create

Filter

Update

The type of controller associated with this Visualforce custom component. Possible values include:
  • Not Specified, for custom components defined without a value for the controller attribute on the <apex:component> tag
  • Standard, a value that cannot be used with custom components or errors may occur
  • StandardSet, a value that cannot be used with custom components or errors may occur
  • Custom, for components that have a value for the controller attribute on the <apex:component> tag
Description string Create

Filter

Nillable

Update

Description of the Visualforce custom component.
Markup textarea Create

Update

The Visualforce markup, HTML, Javascript, and any other Web-enabled code that defines the content of the custom component.
MasterLabel string Create

Filter

Update

The text used to identify the Visualforce custom component in the Setup area of Salesforce.com. The Label for this field is Label.
Name string Create

Filter

idLookup

Update

Required. Name of this Visualforce custom component.
NamespacePrefix string Filter

Nillable

The namespace prefix associated with this object. Each Developer Edition organization that creates a managed package has a unique namespace prefix. The limit is 15 characters. You can refer to a component in a managed package by using the namespacePrefix__componentName notation.

The namespace prefix can have one of the following values:

  • In Developer Edition organizations, the namespace prefix is set to the namespace prefix of the organization for all objects that support it. There is an exception if an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This is the namespace prefix of the Developer Edition organization of the package developer.
  • In organizations that are not Developer Edition organizations, NamespacePrefix is only set for objects that are part of an installed managed package. There is no namespace prefix for all other objects.

Usage

Use custom components to encapsulate a common design pattern and then reuse that pattern several times in one or more Visualforce pages. All users who can view Visualforce pages can view custom components, but the “Customize Application” permission is required to create() or update() custom components.

© Copyright 2000-2009 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.