view = view.substring(0, questionMark);
}
}
context.setRequestPath(view);
if (message != null) {
final MessageBroker messageBroker = IsisContext.getMessageBroker();
messageBroker.addMessage(message);
}
if (override != null) {
context.addVariable(resultName, override, Scope.REQUEST);
}
if (context.getVariable(resultName) == null) {
context.addVariable(resultName, objectId, Scope.REQUEST);
}
} else {
entryState.setForm(formId);
context.addVariable(ENTRY_FIELDS, entryState, Scope.REQUEST);
context.addVariable(resultName, objectId, Scope.REQUEST);
if (override != null) {
context.addVariable(resultName, override, Scope.REQUEST);
}
final String error = entryState.getError();
/*
* if (error != null) {
* context.addVariable(RequestContext.ERROR, error,
* Scope.REQUEST); }
*/
final String view = context.getParameter("_" + ERROR);
context.setRequestPath(view, Dispatcher.ACTION);
final MessageBroker messageBroker = IsisContext.getMessageBroker();
messageBroker.addWarning(error);
}
} catch (final ConcurrencyException e) {
IsisContext.getMessageBroker().addMessage(e.getMessage());