本文整理匯總了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);
}