[jboss-user] [JBoss Seam] - how to set #{invalid} in action

tynor do-not-reply at jboss.com
Wed Jul 18 15:54:41 EDT 2007

I need to do some extra validation in certain actions -- for failed validation, I can set control-specific error messages in the action method via: 

FacesMessages.instance().addToControl("name", new InvalidValue("my error text", MyClass.class, "name", getInstance().getName(), getInstance()));

but I've not figured out how to set the "invalid" state so that the ${invalid} EL function returns true (without setting invalid, my form displays the error messages, but does not highlight the field input controls in red as a normal HibernateValidation error would.

Help? (and thanks)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065550#4065550

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065550

More information about the jboss-user mailing list