This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes want to show error message when illegal characters are entered in input fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "want to show error message when illegal characters are entered in input fields" Watch "want to show error message when illegal characters are entered in input fields" New topic
Author

want to show error message when illegal characters are entered in input fields

Adi Wanik
Greenhorn

Joined: Feb 15, 2011
Posts: 7
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
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

Please check your private messages.


SCJP, SCWCD.
|Asking Good Questions|
Adi Wanik
Greenhorn

Joined: Feb 15, 2011
Posts: 7
Amit Ghorpade wrote:Please check your private messages.


i didnt got that amit... which messages?
 
 
subject: want to show error message when illegal characters are entered in input fields
 
Similar Threads
help with JavaScript function
Can we define a counter variable in jsf?
a4j:repeat and generated Id problem
need help on jsf error message
How the validation is done in JSF?