4 Replies Latest reply on Nov 15, 2008 11:28 PM by Arnie Morein

    Manual entity validation with Seam-like feedback

    Tomasz Wilczynski Newbie

      Is it possible to perform manual entity validation and provide feedback exactly like the one provided by Seam?


      The following pseudocode stops the pageflow but displays plain jsf message in <h:messages>:


      if( !isValid( entity ) {
        InvalidValue iv = new InvalidValue( "wrong value", SomeEntity.class, "someProperty", null, entity );
        facesMessages.add( iv );
        return "/theSamePage.xhtml";
      }


      I'd like to have <s:message> filled and the input coloured with error css class. I also tried addToControl method but efeect was the same.