Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Validation messages are displayed repeatedly when placed in a dataTable  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 171
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are these inside any looping? Can you post your piece of code here?
 
Aiswarya Geidth
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi

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

Thank you for your response.



Thanks



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!