Found the solution. I created a custom field called "remoteReadOnly" and then
in the subclass of the TextFieldFactory that I use for the field I overwrote
this method in this way:
[code] @Override
public Field createField() {
Field field = super.createField();
try {
field.setReadOnly(((PrefilledTextFiledDefinition)
definition).getRemoteReadOnly());
} catch (Exception e){
log.warn("Unable make remote field uneditable", e);
}
return field;
}[/code]
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=6d5c8aeb-ba7c-468c-a80f-2ab8b33d9113
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------