GLORY TO YOUR BRAIN MY LITTLE IMPHA :) --- [EMAIL PROTECTED] a �crit : > Try using pageScope instead of sessionScope for the > inner display:table tag. Eg., > > <display:table width="100%" name="test" > scope="session" id="parent" pagesize="2"> > <display:column property="title" align="right"/> > <display:column title="Related address" > align="right"> > <display:table width="100%" > name="pageScope.parent.col" id="child" > > <display:column width="100%" property="name" > title=""/> > </display:table> > </display:column> > <display:setProperty name="paging.banner.placement" > value="top" /> > </display:table> > > Here, "test" collection contains "col" collection. > > Thanks & Regards, > Imphaa > Wipro Technologies. > Off Tel # 8520408 Extn # 2024 > > "Happiness lies in the way we take things!" > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of dfg dfg > Sent: Friday, January 16, 2004 7:59 AM > To: [EMAIL PROTECTED] > Subject: [displaytag-user] Problem of "Nothing found > to display." with NESTED TABLE !!! > > > Hello > > I have a big problem with nested table, here is my > case. > I have an ArrayList named listeDeProduits which > contains somes objects named "Produit" and each > object "Produit" have an ArrayList named "endroits" > which contains somes object named "Endroit". > > My ArrayList "listeDePoduits" has been set to the > jsp > file with session.setAttribute("listeDeProduits", > listeDeProduits); > > In my jsp file, i have this : > > <bean:define name="listeDeProduits" id="liste" /> > > <display:table name="sessionScope.listeDeProduits" > id > = "IDproduit"> > > <display:column property="nom" title="Nom" /> > > <display:column title="Addresses"> > > <--! the "endroits" property is PUBLIC but if i set > it > in PRIVATE and if i use a getter to get it, i got > the > same error message --> > <--! I put the static number 0 (whith another > number, > i got the same error message) only for the debugging > of course --> > <display:table > name="<%="(sessionScope.listeDeProduits).produit[0].endroits"%>" > id="child" > > <display:column property="ville" title="Ville"/> > > </display:table> > > </display:column> > > </display:table> > > If when i disable the display of the nested table, > ALL > IS OK. > But if i display the nested table, i get this > message > at the emplacement of my nested table "Nothing found > to display." > > If i do this : > > <% > System.out.println(((Endroit)((((ArrayList)((Produit)(((ArrayList)liste).get(0))).getEndroits())).get(0))).getVille()); > %> > > I got the value of the property Ville which is a > member of an Endroit Object. > But when i do : > > <% System.out.println("endroits = " + > ((Produit)(((ArrayList)liste).get(0))).endroits); %> > > I got : "endroits = [EMAIL PROTECTED]" in my > Catalina.out > And after each loading of the jsp file, only the > string after the "@" change. > > I dont know how i got a string like > "[EMAIL PROTECTED]" and i don't understand why > the nested table can't view "endroits" sublist. > > As substitut for the line : > <display:table > name="<%="(sessionScope.listeDeProduits).produit[0].endroits"%>" > id="child" > > I have also tried these lines but i get the same > error > : > <display:table > name="<%="listeDeProduits.produit[0].endroits"%>" > id="child" > > <display:table > name="<%="liste.produit[0].endroits"%>" > id="child" > > <display:table name="<%="(liste.get(0)).endroits"%>" > id="child" > > <display:table > name="<%="(listeDeProduits.get(0)).endroits"%>" > id="child" > > > Don't forget that when i display ONLY the parent > table, all is ok. > > Thanks for any helps. This problem is VERY VERY > important for me. > > > Here is my code of my "Produit" class : > ======================================= > package models; > > import java.util.*; > > public class Produit > { > private String nom = ""; > public ArrayList endroits; > > public ArrayList getEndroits() > { > return endroits; > } > public void setEndroits(ArrayList endroits) > { > this.endroits = endroits; > } > > public String getNom() > { > return nom; > } > public void setNom(String nom) > { > this.nom = nom; > } > } > > Here is my code of my "Endroit" class : > ======================================= > package models; > > public class Endroit > { > private String ville = ""; > > public String getVille() > { > return ville; > } > public void setVille(String ville) > { > this.ville = ville; > } > > } > > > _________________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et > en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and > Integration See the breadth of Eclipse activity. > February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn === message truncated ===
_________________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

