public class DocumentModelResolver extends BeanELResolver
DocumentModel
framework.
To specify a property on a document mode, the following syntax is available:
myDocumentModel.dublincore.title
where 'dublincore' is the
schema name and 'title' is the field name. It can be used to get or set the
document title: <h:outputText value="#
currentDocument.dublincore.title
" />} or <h:inputText value="#
currentDocument.dublincore.title
" />}.
Simple document properties are get/set directly: for instance, the above
expression will return a String value on get, and set this String on the
document for set. Complex properties (maps and lists) are get/set through
the Property
object controlling their value: on get, sub properties
will be resolved at the next iteration, and on set, they will be set on the
property instance so the document model is aware of the change.
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
DocumentModelResolver() |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getType(ELContext context,
Object base,
Object property) |
Object |
getValue(ELContext context,
Object base,
Object property) |
boolean |
isReadOnly(ELContext context,
Object base,
Object property) |
void |
setValue(ELContext context,
Object base,
Object property,
Object value) |
getCommonPropertyType, getFeatureDescriptors
public Class<?> getType(ELContext context, Object base, Object property)
getType
in class BeanELResolver
public Object getValue(ELContext context, Object base, Object property)
getValue
in class BeanELResolver
public boolean isReadOnly(ELContext context, Object base, Object property)
isReadOnly
in class BeanELResolver
Copyright © 2011 Nuxeo SA. All Rights Reserved.