public String FormatRequiredError(JwRequiredValidationError e)
 {
     return ReplaceNormal(e, _templateFactory.GetRequiredErrorTemplate());
 }
Пример #2
0
 //# __________ PROTOCOL :: STATIC __________ #//
 public JwInputControlModel.ValidateDelegateType GetValidateComboBoxRequiredDelegate(
     String modelName,
     String fieldName)
 {
     return delegate(Object o)
     {
         JwList<JwValidationError> v = new JwList<JwValidationError>();
         if( o == null )
         {
             JwValidationError err = new JwRequiredValidationError(modelName, fieldName);
             v.Add(err);
         }
         return v;
     };
 }