If Visualforce markup references installed managed packages, the version settings
for each managed package referenced by the Visualforce markup are saved to aid backwards-compatibility. This ensures that
as the components in managed packages evolve in subsequent package
versions, a page is still bound to versions with specific, known behavior.
A package version is a number that identifies the set of
components uploaded in a package. The version number has the format
majorNumber.minorNumber.patchNumber (for example, 2.1.3). The
major and minor numbers increase to a chosen value during every major release. The
patchNumber is generated and updated only for a patch
release. Publishers can use package versions to evolve the
components in their managed packages gracefully by releasing subsequent package
versions without breaking existing customer integrations using the package.
To configure the package version settings
for a
Visualforce page
or custom component:
- Edit a Visualforce page or
component and click Version Settings.
- Select a Version for each managed package
referenced by the Visualforce page or component. This version of the managed package will
continue to be used by the page or component if later versions of
the managed package are installed, unless you manually update the
version setting. To add an installed managed
package to the settings list, select a package from the list of available
packages. The list is only displayed if you have an installed managed
package that isn’t already associated with the page or component.
- Click Save.
Note the following when working
with package version settings:
- If you save a Visualforce page or custom component that references a managed package
without specifying a version of the managed package, the page or
component is associated with the latest installed version of the managed
package by default.
- You can’t Remove a Visualforce page or component’s
version setting for a managed package if the package is referenced
by the page or component. Use Show Dependencies to find where the managed package is referenced.