I am just starting to look at DisplayTag and am getting the following error:
javax.servlet.jsp.JspException: ServletException in '/WEB-INF/views/recommendations.jsp': javax.servlet.jsp.JspTagException: You must specify one of the following: size
firstly, name='recommendations' will work only when some object (kind of collection/array) is present in request with name as 'recommendations'.....
Which taglibrary version you are using..... In the EL version of the taglibrary this must be an EL expression which points to the source object.... else it should contain integer reference...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is a list of objects. I appreciate your effort and time, but I am going to implement the paging myself rather than spending time trying to get this to work.
Thank You!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am just starting to look at DisplayTag and am getting the following error:
javax.servlet.jsp.JspException: ServletException in '/WEB-INF/views/recommendations.jsp': javax.servlet.jsp.JspTagException: You must specify one of the following: size
The page source is listed below.
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@taglib uri="/WEB-INF/tlds/c.tld" prefix="c"%>
<% pageContext.setAttribute("resultSize",6); %>
<display:table name="recommendations" sort="external" defaultsort="1" id="Stock" class="its" pagesize="2" partialList="true" size="resultSize">
<display:column property="symbol" title="Symbol" sortable="true" sortName="symbol" />
<display:column property="stockName" title="Name" sortable="true" sortName="stockName" />
</display:table>
Thanks for your help.
size='resultSize' is not the correct value i guess... give any integer number....
I did - that did not work either.
firstly, name='recommendations' will work only when some object (kind of collection/array) is present in request with name as 'recommendations'.....
Which taglibrary version you are using..... In the EL version of the taglibrary this must be an EL expression which points to the source object.... else it should contain integer reference...
It is a list of objects. I appreciate your effort and time, but I am going to implement the paging myself rather than spending time trying to get this to work.
Thank You!!