简体   繁体   English

有没有办法使用 skyve 验证器(例如电子邮件)来测试不是 bean 属性的值?

[英]Is there a way to use a skyve validator (e.g. email) to test a value which isn't an attribute on a bean?

I have a transient document which help to upload a bunch of staff to the system.我有一个临时文档,可以帮助将一堆员工上传到系统。 now, I want to have a validation check on the emails while uploading and processing those records, to issue relevant messages to the uploader.现在,我想在上传和处理这些记录时对电子邮件进行验证检查,以向上传者发出相关消息。

You can use the Skyve email validator as outlined in the dev guide at https://skyvers.github.io/skyve-dev-guide/converters/#using-a-validator-without-a-bean您可以使用 Skyve email 验证器,如https://skyvers.github.io-#/skyve-dev-guide/convert-aers

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Java - 为什么在递归调用中不维护原始包装类(例如Integer)的值? - Java - Why value of primitive wrapper class (e.g. Integer) isn't maintained in recursive calls? 可配置(例如XML)的Java Bean到Bean映射框架 - Configurable (e.g. XML) Java Bean to Bean Mapping Framework 用Java转换通用类型(例如T值=(T)inputParam) - Casting Generic Types in Java (e.g. T value = (T) inputParam) 如何检查数组的所有元素是否不等于某个值? (例如,不是空的) - How can I check if all elements of array doesn't equal to some value? (e.g. not empty) 使用该类是否更有效,例如Hashtable而不是接口,例如Map? - Is it more efficient to use the class, e.g. Hashtable than the interface, e.g. Map? Facebook应用程序的测试帐户(例如,JUnit测试手册) - Test accounts for Facebook application (e.g. for manual of JUnit testing) 使用将运行实际容器的服务层模拟来创建控制器测试(例如,tomcat,也许使用更改的Spring上下文文件) - Create controllers test with services layer mocking which will run actual container(e.g. tomcat, maybe with changing spring context file) 增加TextView的值,例如0作为点击值+1 - Increase value of TextView e.g. 0 as clicked value +1 有没有办法将Java方法标记(例如注释)为永不返回? - Is there a way to mark (e.g. annotate) a Java method as never returning? 如何创建一个包含多个对象的JList? 例如价格,重量,颜色等 - How to create a JList that contains an object which has more than one value? e.g. Price, Weight, Colour etc
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM