4 Replies Latest reply on Jun 18, 2007 3:30 PM by Gene Sekera

    Can I hook complex validations into Seam's validation messag

    Gene Sekera Newbie

      I would like to leverage the logic already in the Seam framework to mark and display fields in error. However, unlike the examples I've seen, the validation messages will be generated by my business layer via custom business logic, not by Seam/JSF tags in the presentation tier or Hibernate/persistence tier annotations.

      Assuming my business tier can identify the field(s) in error, the error severity, error summary text and error detail text, is there an easy way to add the errors to som eSeam component so they get displayed just like field-level component/Hibernate validation errors?

      I am aware that the business logic validations occur after the JSF validation life cycle state. Still, I'd like to leverage what I can instead of writing it from scratch.