File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 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: 2713
    
    5

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: want to show error message when illegal characters are entered in input fields
 
Similar Threads
need help on jsf error message
Can we define a counter variable in jsf?
a4j:repeat and generated Id problem
How the validation is done in JSF?
help with JavaScript function