Please remove this post. The answer was obvious instead use the getmessage event use new facesmessage.
Thanks 2009/11/4 Alfredo Torres <alfredoluis.tor...@gmail.com> > Hi, > > Could anyone tell me how to send a custom message to the > ValidatorException something like "The minimun acceptable is 5 and maximun > 10" > > Instead throw new ValidatorException(MessageFactory.getMessage(context, > LongRangeValidator.TYPE_MESSAGE_ID)); > > Something like throw new ValidatorException("Minimun is {0} and Maximun > is {1}",{userBean.minimun,userBean.maximun}); > > Thanks in advance > > -- > Saludos > Alfredo Torres > Hab.+58 212 9446304 > Cel. +58 416 6118599 > -- Saludos Alfredo Torres Hab.+58 212 9446304 Cel. +58 416 6118599 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---