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:
rjy7 2010-04-14 21:28:10 +00:00
parent 1df47314e1
commit be65629194
2 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -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());