문제

I was wondering if it is possible to retrieve a Validator from the FacesContext as i can retrieve the ids from there. by doing this:

Iterator<String> ids = FacesContext.getCurrentInstance()
                .getApplication().getValidatorIds();

I would now like to get a Validator by using those ids. Is this possible?

도움이 되었습니까?

해결책

Yes:

FacesContext.getCurrentInstance().getApplication().createValidator(java.lang.String validatorId);

See javadoc.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top