Guys & Girls After i've half got over my webservice problems i've decided to tackle another issue i have. Right here goes - I have a sign up page which contains a text field with <a4j:support> on it. This works fine - calls the method in the backing bean fine - however i'm unsure how to code the next bit. The 'onChange' javascript event is fired and the username entered is passed to a validator to see if it is available. This method returns true / false. I want to be able to map this up so that redCross.gif is displayed next to the field if the service method returns false. How do i go about doing this? I'm guessing i cant just return a boolean from the ajax method called - it has to be in a standard response? but how? Here is what i have already: ---------------------------------- signupPage.xhtml .... <h:inputText value="#{signupForm.user.username}" id="username" required="true" > <a4j:support event="onchange" action="#{signupForm.validateUsername}"/> <v:commonsValidator type="required" arg="Username"/> </h:inputText> ....
signupForm.java .... public boolean validateUsername(){ return accountManagementService.isUsernameAvailable(user.getUsername()); } Dont think i can return a boolean can i? Many Thanks Sion -- View this message in context: http://www.nabble.com/Username-Validation-Ajax4jsf-with-graphic-tf3571946s2369.html#a9980058 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]