Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

display tag that contains list which inturn contain the list

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends.
I need one requirement.I have to display the list using the display tag.With a single list its working fine.But my list of objects, inturn each object consists another list.I have to display the last list.
Ex:- ClassRoom is my class.
ClassRoom contains studentList that contains Student as object.
Each Student Object contains subjectsMarksList.
Now I have to display subjectsMarksList as follows.
sub1 sub2 sub3
---- ---- -----
50 20 30
20 40 40
---- ---- -----
Total
This is for all students I have to do.I have to represents only subjects and marks.

Could you please help me how can I do that?
Thanks in advance.
 
suresh sai
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Friends.,
I found out one solution that is almost similar to what I need,using in combination with <logic:iterate>.But the headers are printing two times.

Here I am showing the snap shot of the code.
<logic:iterate id="student" name="classForm" property="studentList">
<display:table name="student.subjectsMarksList">
<display:column property="sub1" />
................................
</display:table>
</logic:iterate>
It is printing all the values but header is repeating as follows.

sub1 sub2 sub3
---- ---- -----
50 20 30
---- ---- -----
sub1 sub2 sub3
---- ---- ----
20 40 40
---- ---- -----
Please help me to solve it.
Thanks in advance.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic