This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation messages are displayed repeatedly when placed in a dataTable

 
Aiswarya Geidth
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
 
Kumaravadivel Subramani
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



 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic