This content has been marked as final.
Show 2 replies
-
1. Re: HtmlPickList validator only executed when something sele
nkr1pt Feb 17, 2009 2:21 PM (in response to nkr1pt)As a fix I'm doing the validation myself in the send action, instead of letting the processing lifecycle handle it, like this:
public String send() { try { selectUsersModule.validate(); findRecipients(); EmailMessage mail = new EmailMessage("someone@somewhere.com", recipients, title, message); notificationSender.send(mail); } catch (ValidatorException ve) { FacesContext context = FacesContext.getCurrentInstance(); context.addMessage(ve.getMessage(), ve.getFacesMessage()); } return null; }
this certainly works, but I'm not sure if it is a good way to handle it...
I'm open for better solutions.
Gr -
2. Re: HtmlPickList validator only executed when something sele
nkr1pt Feb 17, 2009 2:43 PM (in response to nkr1pt)I can offcourse set the required attribute of picklist to true...
stupid :)