• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use multiple forEach Loops in EL?

 
aatish pandya
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Output - Duplicate Records, see attachment!
CT_OtPt.jpg
[Thumbnail for CT_OtPt.jpg]
Output
 
Piyush Joshi
Ranch Hand
Posts: 207
Eclipse IDE Firefox Browser jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just have to place your <td>'s at right places. Besides it usage of forEach is just fine.
 
aatish pandya
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Piyush,

I have tried all possible combinations for the forEach as well as the TD's, but the output's are abnormal. I have attached 2 such output's. Can you help getting it right please?
CT_OtPt.jpg
[Thumbnail for CT_OtPt.jpg]
op1
CT_OtPt_Nk.jpg
[Thumbnail for CT_OtPt_Nk.jpg]
op2
 
Piyush Joshi
Ranch Hand
Posts: 207
Eclipse IDE Firefox Browser jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this should work:

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the HTMl that is being produced? That will tell you what's wrong.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic