<object xmlns="http://www.cmobilecom.com/af/objects"
id="object1" type="objectType">
...
</object>
The namespace
xmlns="http://www.cmobilecom.com/af/objects"
is required to differentiate it from other object elements. The object element and its
content must be well-formed XML document.
A module can create embeddable objects by implementing createEmbeddedObject(...) method:
@Override
public BackingBean createEmbeddedObject(Component parentComponent, String objectType,
Element objectElem, ContainerBean containerBean) throws SystemException {
}
An embeddable object is a backing bean such as EntityBackingBean, EntityListBackingBean
or MenuBean, and it is interactive supporting partial behaviors. The viewConfig element
configures how the embedded object will be rendered and interacted with users, including
properties, layout, render style, access control, partial behaviors, pagination, etc..
See View Config.
Each object has an id. If object id is not set, it will be the same as object type. If there are two objects of the same type in a page, their id(s) must be set and unique within the page.
Built-in embeddable object types are: login, entity, entities, menu, inlineText, textFile, FTP and media slideshow.
See Website module documentation for more details on web pages(.xpg).