0 Replies Latest reply on Apr 18, 2013 10:50 AM by Amit Jadhav

    Validating Data model before persisting

    Amit Jadhav Newbie


      I have a data model which has multiple editable text fields in all its rows. The problem that I am facing is, that when I submit this form, the corresponding enities are getting updated directly before the logic in the backing statless bean executes.

      Is there any way to postpone the persistence till I do an em.persist or em.merge.

      If I have to use a validator prior to the SLSB, how can I validate the entire data model as i need to compare each entity with one another in the datamodel.