Fórum

displaytag No data to display problem

Michael Anthony Dorrian, modificado 14 Anos atrás.

displaytag No data to display problem

Junior Member Postagens: 98 Data de Entrada: 03/09/09 Postagens Recentes
I have a view_funds.jsp file as follows.
<%@ include file="/html/portlet/ext/library/init.jsp" %>
<%@page import="java.util.ArrayList"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display-el" %>

<%@page import="com.ext.portlet.library.action.FundData"%>
<%

%>

<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>

<portlet:defineObjects />

<%

ArrayList funds = (ArrayList) FundData.GetFundData();FundData fund = null;
%>

<display:table id="data" name="funds" class="funds" pagesize="10" export="false">>
<display:column property="FundCD" title="FundCD" sortable="true" />
<display:column property="FundName" title="Fund Name" sortable="true" />
</display:table>

what i want to do is to display the contents of the funds arraylist which has data in the displaytag table but so far nothing....could somebody tell me why....

My previous working version of view_funds.jsp but without displaytag which i need was as follows:
<%@ include file="/html/portlet/ext/library/init.jsp" %>
<%@page import="java.util.ArrayList"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@page import="com.ext.portlet.library.action.FundData"%>
<%



<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>

<portlet:defineObjects />

<%
ArrayList funds = (ArrayList) FundData.GetFundData();FundData fund = null;
%>
<table style="border: 1px solid #CCC; width: 100%; pagesize=15;padding: 5px; ">
<tr>
<td style="color: #12558E;">FundCD</td>
<td style="color: #12558E;">FundName</td>
</tr>
<%
for (int i=0; i < funds.size(); i++) {
fund = (FundData) funds.get(i);
String field1 = fund.getFundCD();
String field2 = fund.getFundName();
%>
<tr>
<td><%= field1 %></td>
<td><%= field2 %></td>
</tr>
<%
}%>
</table>
thumbnail
Zsolt Balogh, modificado 14 Anos atrás.

RE: displaytag No data to display problem

Expert Postagens: 463 Data de Entrada: 23/03/09 Postagens Recentes
<display:table id="data" name="funds" class="funds" pagesize="10" export="false">>

I'm not sure, if this is the problem, but you have a > after this line...
Michael Anthony Dorrian, modificado 14 Anos atrás.

RE: displaytag No data to display problem

Junior Member Postagens: 98 Data de Entrada: 03/09/09 Postagens Recentes
Zsolt Balogh:
<display:table id="data" name="funds" class="funds" pagesize="10" export="false">>

I'm not sure, if this is the problem, but you have a > after this line...


Thanks for that..took it out but still no luck
Michael Anthony Dorrian, modificado 14 Anos atrás.

[Resolved]RE: displaytag No data to display problem

Junior Member Postagens: 98 Data de Entrada: 03/09/09 Postagens Recentes
Michael Anthony Dorrian:
Zsolt Balogh:
<display:table id="data" name="funds" class="funds" pagesize="10" export="false">>

I'm not sure, if this is the problem, but you have a > after this line...


Thanks for that..took it out but still no luck


Fixed this so for fix refer to thread
http://www.liferay.com/web/guest/community/forums/-/message_boards/message/4128371

I started another thread because now i have other problems that need to be resolved
thumbnail
Dhandapani S, modificado 13 Anos atrás.

RE: displaytag No data to display problem

Regular Member Postagens: 176 Data de Entrada: 24/03/09 Postagens Recentes
Hi Zsolt,

In my portlet, The display tag is displaying the results. Pagination is working but the export csv and excel is not working correctly.....it shows the data in the portlet instead of showing a popup to download the data...

please give me the guidance for getting solution for this.

Thanks in advance.

Dhandapani S