Hello world...

I've got a working solution for this now in case anyone else is interested.

I created a replacement for TableTag (uncreatively called Table2Tag) which is implemented as an interating tag. Due to the nature of the internals I also created a ColumnAddition tag where the additional information is put. This tag's body will be rendered after its corresponding column's body.

An example might help:

<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>

In this example we're displaying the city in which the school is located
by asking bean:write to execute schoolInstance.getAddress().getCity()


You can find a patchfile, a tarball of patched source and the original source at http://www.tragus.org/~jcej/display-taglib/


I think it would make a worthwhile addition to the existing distribution. Please let me know what you think.

Later,
J



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to