want to show error message when illegal characters are entered in input fields
Adi Wanik
Greenhorn
Joined: Feb 15, 2011
Posts: 7
posted
0
hi. i have some input field where i need to enter time in HH:MM format. But when i enter illegal characters it shows error message like : "ENTER VALID TIME". The error message is in i18 properties file. But when i enter illegal characters in more than one field, the same error message is also displayed more than one time (because my code is in <a4j:repeat/> loop, may be :rolleyes. But i want to show this for only one time, no matter how many times user enters illegal char..I used <f:attribute name="replaceMessage" value="#{DIALOG.I18N.BREAKSTART_REQUIRED}"/> in <a4j:repeat/> loop...BREAKSTART_REQUIRED is the name of the field....please help