Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help w.r.t to layout:collectionInput

 
rahul vasishta
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

How to validate input values of the layout:collectionInput using javascript? Or is there some other way of doing it?

<layout:collectionInput title="Email" property="mailID" formProperty="list[${index}].mailID"/>


Now in this case how to validate the input values provided for the E-mail?

-Rahul
 
rahul vasishta
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can it be done by iterating through layout:collection ?

//something like
for (var i = 0; i <= <numberOfElements>; i++) {
window.document.getElementById(<mailID>+i).value;
}


If so how to iterate and acess elements of layout:collection using javascript?


Thanks in advance,

Rahul
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic