Programatically force a field to appear as invalid

Hi folks,

I am looking for a way to force a field to appear as invalid in the UI without having a validator attached to it. I guess it is possible but can’t find how to achieve this ?


I confess we don’t fully understand how it all works, but you may to look at APIs surrounding code we have:

    	try {
    	} catch( Validator.InvalidValueException e ) {

I think we have a validator on it, but the setComponentError method is involved because when we would set our own error, we’d get double messages if we didn’t turn off component error, and if the value is invalid, the request repaint would cause the field to appear as an error field. Hope it helps (some)…