NIHVIVO-377 Initial work on getting custom form to retrieve its past state after a failed form submission. Not all cases working yet.
This commit is contained in:
parent
56b92576f3
commit
5579c1a9ac
1 changed files with 5 additions and 2 deletions
|
@ -89,13 +89,16 @@ are well formed.
|
|||
entToReturnTo.add(" "+editConfig.getEntityToReturnTo()+" ");
|
||||
}
|
||||
|
||||
Map<String,String> errors = submission.getValidationErrors();
|
||||
Map<String,String> errors = submission.getValidationErrors();
|
||||
EditSubmission.putEditSubmissionInSession(session,submission);
|
||||
|
||||
if( errors != null && ! errors.isEmpty() ){
|
||||
String form = editConfig.getFormUrl();
|
||||
vreq.setAttribute("formUrl", form);
|
||||
%><jsp:forward page="${formUrl}"/><%
|
||||
vreq.setAttribute("view", vreq.getParameter("view"));
|
||||
%>
|
||||
<jsp:forward page="${formUrl}" />
|
||||
<%
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue