Re: Using Label value in custom validator

2007-06-06 Thread Stefano Panero
I've already thought to navigate the entire tree, I just wanted to know if there was a simpler way which I couldn't figure out. Thank you very much. Stefano. 2007/6/5, Mike Kienenberger [EMAIL PROTECTED]: Labels are a component like anything else. However, I suspect you'd need to iterate

Re: Using Label value in custom validator

2007-06-05 Thread Mike Kienenberger
Labels are a component like anything else. However, I suspect you'd need to iterate through the entire component tree, looking for any h:label component that contains a reference to the current component. Another way to go is to use the t:message/messages component with replaceIdWithLabel=true

Using Label value in custom validator

2007-06-04 Thread Stefano Panero
Hi everybody, I've implemented a simple custum validator public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException { List errors = validate(value); // do some validation logic if (!errors.isEmpty()) {