NIHVIVO-377 When a custom form fails validation due to a missing organization, the server generates an error appropriate to the non-Javascript version of the form, and the Javascript then modifies it for the Javascript version of the form.
This commit is contained in:
parent
1df47314e1
commit
be65629194
2 changed files with 4 additions and 4 deletions
|
@ -9,10 +9,10 @@ import com.hp.hpl.jena.rdf.model.Literal;
|
|||
|
||||
public class PersonHasPositionValidator implements N3Validator {
|
||||
|
||||
private static String DUPLICATE_ERROR = "Must choose an existing organization or create a new one, not both.";
|
||||
private static String MISSING_ORG_ERROR = "Must specify an organization.";
|
||||
private static String DUPLICATE_ERROR = "Must select an existing organization or create a new one, not both.";
|
||||
private static String MISSING_ORG_ERROR = "Must either select an existing organization or create a new one.";
|
||||
private static String MISSING_ORG_TYPE_ERROR = "Must select a type for the new organization.";
|
||||
private static String MISSING_ORG_NAME_ERROR = "Must select a name for the new organization.";
|
||||
private static String MISSING_ORG_NAME_ERROR = "Must specify a name for the new organization.";
|
||||
|
||||
public Map<String,String> validate(EditConfiguration editConfig, EditSubmission editSub){
|
||||
// Map<String,String> existingUris = editConfig.getUrisInScope();
|
||||
|
|
|
@ -524,7 +524,7 @@ public class InputElementFormattingTag extends TagSupport {
|
|||
}
|
||||
|
||||
if( errorStr!=null && !errorStr.equals("")) {
|
||||
out.println("<p class=\"validationError\">"+errorStr+"</p>");
|
||||
out.println("<p id=\""+getId()+"_validationError\" class=\"validationError\">"+errorStr+"</p>");
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
log.error("Error in doStartTag: " + ex.getMessage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue