Apply the following patch to EditableModelImpl.getRowData and make it depend upon a configuration property.
diff --git a/nuxeo-jsf/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/model/impl/EditableModelImpl.java b/nuxeo-jsf/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/model/impl/EditableModelImpl.java index 91a7a6ede25..87c70ee3605 100644 --- a/nuxeo-jsf/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/model/impl/EditableModelImpl.java +++ b/nuxeo-jsf/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/model/impl/EditableModelImpl.java @@ -274,7 +274,12 @@ public class EditableModelImpl extends DataModel implements EditableModel, Seria if (data == null) { return null; } else if (!isRowAvailable()) { - throw new IllegalArgumentException("No row available on " + this); + String message = "No row available on " + this; + if (index == -1) { + log.warn(message); + return null; + } + throw new IllegalArgumentException(message); } else { if (index == -2) { // XXX return template instead (?)