Hi I'm getting this error in my server log when I try to use <h:inputText validator=
SEVERE: JSF1005: Cannot instantiate validator of type {registerView.checkIfUserExists}
<h:inputText id="username" value="#{registerView.users.username}"
required="true"
requiredMessage="#{msgs.registerUsernameRequired}"
[b]validator="{registerView.checkIfUserExists}"[/b]
validatorMessage="#{msgs.registerUsernameFormat}"
maxlength="30">
</h:inputText>
And the backing bean is:
@ManagedBean(name = "registerView")
@RequestScoped
public class RegisterView implements Serializable {
...
public void checkIfUserExists(FacesContext context, UIComponent component, Object value) { ... }
}
I can't see the problem, the method signature of checkIfUserExists looks good to me and the backing bean works fine, has anyone got any suggestions?
I'm using Glassfish v3 and JSF 2.02-10.
Thanks,
Brendan.
[Message sent by forum member 'healeyb']
http://forums.java.net/jive/thread.jspa?messageID=393522