本文整理汇总了Java中org.springframework.web.bind.WebDataBinder.addValidators方法的典型用法代码示例。如果您正苦于以下问题:Java WebDataBinder.addValidators方法的具体用法?Java WebDataBinder.addValidators怎么用?Java WebDataBinder.addValidators使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.web.bind.WebDataBinder
的用法示例。
在下文中一共展示了WebDataBinder.addValidators方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
/**
* Adds the {@link CollectionValidator} to the supplied {@link WebDataBinder}
*
* @param binder web data binder.
*/
@InitBinder
public void initBinder(WebDataBinder binder) {
Object target = binder.getTarget();
if (target != null && collectionValidator.supports(target.getClass())) {
binder.addValidators(collectionValidator);
}
}
示例2: initBinderUserPassword
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder(FatLiningConstants.FIELD_PASSWORD_DTO)
public void initBinderUserPassword(WebDataBinder binder) {
binder.addValidators(userPasswordDTOValidator);
}
示例3: initBinderUserDetails
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder(FatLiningConstants.FIELD_USER_DETAILS)
public void initBinderUserDetails(WebDataBinder binder) {
binder.addValidators(userDetailsDTOValidator);
}
示例4: initBinderNewUser
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder(FatLiningConstants.FIELD_NEW_USER)
public void initBinderNewUser(WebDataBinder binder) {
binder.addValidators(newUserDTOValidator);
}
示例5: initUserBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@SuppressWarnings("unused")
@InitBinder("user")
protected void initUserBinder(WebDataBinder binder) {
binder.addValidators(new UserValidator());
}
示例6: initPasswordBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@SuppressWarnings("unused")
@InitBinder("passwordChangeRequest")
protected void initPasswordBinder(WebDataBinder binder) {
binder.addValidators(new PasswordValidator());
}
示例7: initPostBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@SuppressWarnings("unused")
@InitBinder("post")
protected void initPostBinder(WebDataBinder binder) {
binder.addValidators(new PostValidator());
}
示例8: initBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder
protected void initBinder(WebDataBinder binder) {
binder.addValidators(userSettingsValidator);
}
示例9: initBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder
protected void initBinder(WebDataBinder binder) {
binder.addValidators(passwordSettingsValidator);
}
示例10: initUserBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder("userDTO")
public void initUserBinder(WebDataBinder binder) {
binder.addValidators(userCreateFormValidator);
}
示例11: initSocialUserBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder("socialUserDTO")
public void initSocialUserBinder(WebDataBinder binder) {
binder.addValidators(socialUserFormValidator);
}
示例12: initUserPasswordBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder("userPasswordDTO")
public void initUserPasswordBinder(WebDataBinder binder) {
binder.addValidators(userPasswordValidator);
}
示例13: initBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder
public void initBinder(WebDataBinder binder) {
binder.addValidators(new BlogFormValidator());
}
示例14: initBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder
public void initBinder(WebDataBinder binder){
binder.addValidators( new SignupFormValidator(userRepository) );
}
示例15: initBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder("form")
public void initBinder(WebDataBinder binder) {
binder.addValidators(userCreateFormValidator);
}