7 Replies Latest reply on Jun 7, 2008 12:03 AM by infinity2heaven

    Validation messages with actual property names with <s:validateAll>

    infinity2heaven

      I'm wrapping my <h:form> with </s:validateAll>. And I display messages using <h:messages>


      I don't have acustom validator properties file as I'm fine with the defaults. However the validation messages don't point to the property name(s) making it too generic and hard to understand. For example, let's say I have 10 properties on the page and there were 3 validations thrown buy Hibernate Validator. I get the following messages


      
      . value is required
      
      . value is required
      
      . length should be 20
      
      



      Ideally, I'd like


      
      . foo value is required
      
      . bar value is required
      
      . foobar length should be 20
      
      



      I like how validations work in Seam with minial code so far except for the above limitation. Any suggestions?