Hi Matthew,

You might try my "enhancements" to version 0.8:
  http://www.tragus.org/~jcej/display-taglib/

Specifically, it allows you to add information to the output created by
<display:column>. For example:

<display:table width="75%" name="schools" export="true">

  <display:column title=""/>
  <display:column property="name" sort="true"/>
  <display:column property="description" sort="true"/>

  <display:columnAddition property="description">
    Located in
    <bean:write name="current_row" property="address.city"/>');"
  </display:columnAddition>

</display:table>

For each school listed, the city component of the school's address will be
appended to the school's description column.

> How hard would it be to implement a group of actions on a column without
> having to write custom decorator classes.
> Writing a "One off/non-generic" custom decorator for this purpose is
> extemely non-productive.
>
> see line 11.
>
> http://www.sutternow.com/CodeStuff/jsp/grids/jstlgrid.jsp
> <http://www.sutternow.com/CodeStuff/jsp/grids/jstlgrid.jsp>
>
>   1:<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
>    2:<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>
>    3:<%@ page import="com.sutternow.xmlSelect"%>
>    4:<%
>    5: xmlSelect objXML = new xmlSelect();
>    6: objXML.setJndiname("java:comp/env/jdbc/sutterdb");
>    7: objXML.setQuery("select * from Customers");
>    8:%>
>    9:<c:import url="/includes/xslt/sortablegrid.xslt" var='xslt'/>
>   10:<x:transform xslt="${xslt}">
>   11:<x:param name="hreflist" value="edit,edit.jsp;delete,delete.jsp"/>
> 12:<%=objXML.getXml().toString().trim()%>
>   13:</x:transform>
> Is there some way to implement a hreflist attribute that gets parsed or
> implement extra item sub tags?
>
> The source for the xslt template is here.
> http://www.sutternow.com/includes/xslt/sortablegrid.xslt
> <http://www.sutternow.com/includes/xslt/sortablegrid.xslt>
>
> Matthew Payne



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to