1 Reply Latest reply on Mar 20, 2007 8:27 AM by fady.matar

    Validation fails and the process does not interrupt

      I have overridden the persist method in one of the beans to handle duplicate names.

      Now the weird thing is that upon catching a duplicate, it's still redirecting to the view page and does not show the error messages. Can anyone assist?

      @Override
      public String create() {
       try {
       return super.update();
       } catch (Exception e) {
       e.printStackTrace();
       FacesMessage message = new FacesMessage("Name must be unique");
       FacesMessages.instance().addToControl("name", message);
       return null;
       }
      }
      


        • 1. Re: Validation fails and the process does not interrupt

          I'm getting the exception on the console along with a message stating that the messages have been enqueued but not displayed. What's the cause?
          This approach used to work with prior version of JBoss Seam

          INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
          sourceId=client:name[severity=(INFO 0), summary=(Name must be unique), detail=(Name must be unique)]