Hi,

 

I tried out the procedure in the displaytag live examples for dynamic column creation. All that I get on my webpage is a blank table – it has no content just a whole bunch of horizontal lines.

 

Here’s what I have (it mirrors the example on dynamic column creation):

 

<jsp:scriptlet>

      ArrayList displayitems = new ArrayList();

      HashMap h1 = new HashMap();

      h1.put("id","abc");

      displayitems.add(h1);

      HashMap h2 = new HashMap();

      h2.put("id","foo");

      displayitems.add(h2);

      request.setAttribute("displayitems", displayitems);

     

      java.util.Map id = new java.util.HashMap();

      id.put("property", "id");

      id.put("title", "myID");

     

      java.util.List set1 = new java.util.ArrayList();

      set1.add(id);

     

      request.setAttribute("collist", set1);

</jsp:scriptlet>

 

      <display:table id="items" name="displayitems" export="true">

            <c:forEach var="cl" items="${collist}">

                  <display:column property="${cl.property}" title="${cl.title}" />

          </c:forEach>

            <display:setProperty name="basic.empty.showtable" value="true"/>

      </display:table>

 

Has anyone else encountered this issue? Is there something amiss in this implementation? I have looked at previous posts and this idea was posted by a displaytag developer in a thread on this topic.

 

Thanks,

Mithila

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to