Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Message Property is not working

Yahya Arshad
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have made a custom property file with name customMessages
and placed it in the package com.atwork

i also registered it in faces-config as


and .properties file contains

javax.faces.component.UIInput.REQUIRED=This field is required.
javax.faces.component.UIInput.REQUIRED_detail= Please fill in this field.
javax.faces.validator.LengthValidator.MAXIMUM= This field must be at least {0} characters long.

but it my page still displaying native errors of input field
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic