corrected validators and error messaging
This commit is contained in:
parent
3465cf2393
commit
f218cc8d24
2 changed files with 9 additions and 9 deletions
|
@ -31,10 +31,10 @@
|
|||
Please enter a First Name for this person.
|
||||
<#elseif errorFieldName == "lastName">
|
||||
Please enter a Last Name for this person.
|
||||
<#elseif errorFieldName == "lastName">
|
||||
${submissionErrors[errorFieldName]}
|
||||
<#elseif errorFieldName == "label">
|
||||
Please enter a value in the name field.
|
||||
</#if>
|
||||
<br />${errorFieldName}
|
||||
<br />
|
||||
</#list>
|
||||
</p>
|
||||
</section>
|
||||
|
|
|
@ -109,15 +109,15 @@ public class PersonHasPositionHistoryGenerator extends VivoBaseGenerator impleme
|
|||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("positionTitle")
|
||||
.setRangeDatatypeUri( XSD.xstring.toString() )
|
||||
// .setValidators("[nonempty]")
|
||||
.setRangeDatatypeUri( XSD.xstring.toString() ).
|
||||
setValidators( list("nonempty") )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("positionType").
|
||||
setOptionsType(FieldVTwo.OptionsType.CHILD_VCLASSES_WITH_PARENT).
|
||||
setObjectClassUri(positionClass)
|
||||
//setValidators( ["nonempty"])
|
||||
setObjectClassUri(positionClass).
|
||||
setValidators( list("nonempty") )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
|
@ -128,8 +128,8 @@ public class PersonHasPositionHistoryGenerator extends VivoBaseGenerator impleme
|
|||
|
||||
conf.addField( new FieldVTwo().
|
||||
setName("orgLabel").
|
||||
setRangeDatatypeUri(XSD.xstring.toString())
|
||||
// .setValidators("[nonempty]")
|
||||
setRangeDatatypeUri(XSD.xstring.toString() ).
|
||||
setValidators( list("nonempty") )
|
||||
);
|
||||
|
||||
conf.addField( new FieldVTwo().
|
||||
|
|
Loading…
Add table
Reference in a new issue