final String voidView =
context.fullFilePath(parameterObject.forwardVoidTo == null ? context.getResourceFile()
: parameterObject.forwardVoidTo);
final HiddenInputField[] hiddenFields =
new HiddenInputField[] {
new HiddenInputField("_" + OBJECT, objectId),
new HiddenInputField("_" + VERSION, version),
new HiddenInputField("_" + FORM_ID, parameterObject.formId),
new HiddenInputField("_" + METHOD, parameterObject.methodName),
parameterObject.forwardResultTo == null ? null : new HiddenInputField("_" + VIEW,
context.fullFilePath(parameterObject.forwardResultTo)),
new HiddenInputField("_" + VOID, voidView),
new HiddenInputField("_" + ERRORS, errorView),
parameterObject.completionMessage == null ? null : new HiddenInputField("_" + MESSAGE,
parameterObject.completionMessage),
parameterObject.scope == null ? null : new HiddenInputField("_" + SCOPE, parameterObject.scope),
parameterObject.resultOverride == null ? null : new HiddenInputField("_" + RESULT_OVERRIDE,
parameterObject.resultOverride),
parameterObject.resultName == null ? null : new HiddenInputField("_" + RESULT_NAME,
parameterObject.resultName),
parameterObject.resultName == null ? null : new HiddenInputField(RequestContext.RESULT,
(String) request.getContext().getVariable(RequestContext.RESULT)) };
// TODO when the block contains a selector tag it doesn't disable it if the field cannot be edited!!!
final FormFieldBlock containedBlock = new FormFieldBlock() {
@Override