My custom control can show missing require field error message correctly as expected like pxTextInput does. But if I enter the value that will be failed at validation, my custom control cannot show error message like pxTextInput. Please see picture in attached document.
How to set my custom control to behave like pxTextInput? I tried to find the jsp code of pxTextInput but I cannot find it.
Thank you for your information. I use your code and do some modification to fit my requirement. It can show error message but it's behavior still does not like pxTextInput. I put the detail in attached document.
I've already added this line to my custom control. It won't show the error message if there is no error message in that property and it will show the error message if there is an error message as expected.
But for pxTextInput it will remove error message on screen immediately when we update the value without submit so I want my custom control to do the same thing.
I don't know how pxTextInput does. I look at the clipboard, the error message is still in the clipboard but it will not show the message if I update the value or just click at pxTextInput area.
That's why i have asked you to configure an event listener to the control, and after entering the text when you blurred out, Just clear the error message from front end. The behavior will be same like pxTextInput.