Client Framework 2

The Client Framework 2 is a platform that allows authors to create applications with a rich client-side user interface. The platform optimizes performance and payload, and provides extended customization. The Client Framework 2 consists of a set of components, and each component provides a piece of reusable functionality, so-called 'feature'. A feature is a unique identifier for some functionality. It can refer to a single piece of functionality on a device, or to a functionality provided by a part of the application. These components can be used and combined together with XDIME markup without involving any custom JavaScript, but they also provide an abstract JavaScript API that allows them to be controlled by a custom JavaScript code. Moreover, the platform provides a client-side separation between the presentation layer and the data model enabling different parts of an application to be easily reused.

The Client Framework 2 is a platform that allows authors to create applications with a rich client-side user interface. The platform optimizes performance and payload, and provides extended customization. The Client Framework 2 consists of a set of components, and each component provides a piece of reusable functionality, so-called 'feature'. A feature is a unique identifier for some functionality. It can refer to a single piece of functionality on a device, or to a functionality provided by a part of the application. These components can be used and combined together with XDIME markup without involving any custom JavaScript, but they also provide an abstract JavaScript API that allows them to be controlled by a custom JavaScript code. Moreover, the platform provides a client-side separation between the presentation layer and the data model enabling different parts of an application to be easily reused.

Currently the Client Framework 2 is only supported on a limited number of high-end devices, but its cross device support will be constantly improved. Device support is based on features. In order to determine whether the selected feature is supported on a particular device, the page author must test the code on that device.

MCS contains several examples illustrating the use of the Client Framework 2. The XDIME files, policies and assets can be found in the ${MCS_HOME}/webapps/mcs.war/projects/examples/cf2 directory.

Note:

The Client Framework 2 requires a knowledge of JavaScript.

Note:

The use of the Client Framework 1 widgets and the Client Framework 2 components on the same XDIME page is not supported and will result in undefined behavior.

Note:

The ${MCS_HOME}/webapps/mcs.war/projects/cf2 directory contains script modules and JavaScript files used by the Client Framework 2 components. These files must not be modified.

Feature support

The mcs:feature function can be used to verify if the selected feature is supported on the current device. Refer to mcs:feature for further information.

Related topics