DisplayTag
  1. DisplayTag
  2. DISPL-33

add example of <display:column> with body to tutorial

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.0 RC1
    • Fix Version/s: 1.0 RC2
    • Component/s: Documentation
    • Labels:
      None

      Description

      ====
      imported from sf tracker
      id 1015480
      submitted by Will Glass-Husain - wglass
      http://sourceforge.net/support/tracker.php?aid=1015480
      ====


       Hi,

      I've been noticing that new users again and again (me
      too, when I started) have a question like:

      http://www.mail-archive.com/displaytag-user%
      40lists.sourceforge.net/msg01625.html

      ***
      New to using the display taglib and am stumped by this
      on. Is there anyway to put more
      than one data column in a single table column? In my
      case, I'm trying to output names.
      The
      names are stored as firstname, middlename, and
      lastname; each individual columns in the
      database table. I'd like to output them like "lastname,
      firstname middlename" all in
      the
      same column.
      ***

      Usually there's at least one wrong or overly complicated
      answer (use a new property, use a Decorator) before
      the optimal answer: use <display:column> with a body.
      This tells me there's a lot of users out there who never
      learned this.

      I suggest an example of this be added VERY
      PROMINENTLY to the website. Maybe in the tutorial
      page under basic usage. (It is pretty basic - I use it all
      the time).
      http://displaytag.sourceforge.net/tut_basic.html

      <display:column title="name" >
      <c:out value="${row.first_name}"/>
      <c:out value="${row.last_name}"/>
      </display:column>

        Activity

        Hide
        fabrizio giustina added a comment -
        documentation has been updated
        Show
        fabrizio giustina added a comment - documentation has been updated

          People

          • Reporter:
            fabrizio giustina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: