I am trying to make a custom message for the required input fields. The steps that I have done so far: -

  • created a .properties file with this content inside it: javax.faces.component.UIInput.REQUIRED = {0}: Validation Error: some custom message here.

  • modified the faces-config.xml I have added there a tag message-bundle with content conf.MyMessage

  • And here is my project structure
  • alt text

I dont really know what is wrong and why my custom error message is not working, if you have any suggestions would be nice :)

asked 07.03.2017 at 14:14

tano9321's gravatar image

tano9321
41101115
accept rate: 0%


We recommend to use the cms instead of property files. Look at: http://answers.axonivy.com/questions/517/how-to-enable-use-of-properties-files - for how to use cms in jsf views.

link

answered 07.03.2017 at 14:56

Alex%20Suter's gravatar image

Alex Suter ♦♦
2.7k91939
accept rate: 85%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×30

Asked: 07.03.2017 at 14:14

Seen: 1,117 times

Last updated: 07.03.2017 at 14:56