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 Validation messages are displayed repeatedly when placed in a dataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Validation messages are displayed repeatedly when placed in a dataTable" Watch "Validation messages are displayed repeatedly when placed in a dataTable" New topic
Author

Validation messages are displayed repeatedly when placed in a dataTable

Aiswarya Geidth
Greenhorn

Joined: Jan 10, 2012
Posts: 13

Hi,

I am using a dataTable in my form, it contains from date, to date and remarks as columns.

I put a date converter for from date, to date and messages also used in this form.

When i click on submit button with wrong format entered in dates messages are displayed for each row on the top.


For Example: From date - Please enter the value in valid format
From date - Please enter the value in valid format
From date - Please enter the value in valid format
To Date - Please enter the value in valid format
.
.
.
.
.
To Date - Please enter the value in valid format



I want to display these messages only once when any number of wrong formats are given

Can any one Please help me in this regard.


Thanks in advance
Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 166

Are these inside any looping? Can you post your piece of code here?


No pain, No gain.
OCJP 1.6
Aiswarya Geidth
Greenhorn

Joined: Jan 10, 2012
Posts: 13


Hi

Yes I am using looping. And I have use an alternate custom validations and working fine.

Thank you for your response.



Thanks



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validation messages are displayed repeatedly when placed in a dataTable
 
Similar Threads
how to get date in YYYYMMDD format
Clear validation message dynamically for the Datepicker
adding dynamic value to properties file.
How to refresh the parent page when the child window is submitted?
Re-Render Problem after ValidationException