DisplayTag
  1. DisplayTag
  2. DISPL-74

href in column doesn't work in rc1 and rc2, worked in b1

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0 RC1, 1.0 RC2
    • Fix Version/s: 1.0
    • Component/s: Tag Library
    • Labels:
      None
    • Application server:
      tomcat-5.0.28

      Description

      I just started using the displaytag library, together with tomcat, webwork and velocity. To get started, I took parts of the "openreports" package and modified them for a different application domain. I was having trouble getting hyperlinks to show up in generated tables, and after trying everything else, I tried using the same displayTag.jar file that the openreports package was using (beta1). Then it worked. I tried it again with displayTag-rc1.jar and rc2.jar, and the links didn't show up again.

      The code in question was copied from the openreports file ListCharts.vm and modified:

        $req.setAttribute("reportCharts", $reportCharts)

        #bodytag( Table "name=reportCharts" "class=displayTag" "sort=list")
          #tag( Column "property=name" "href=editChart.action?command=edit" "paramId=id" "paramProperty=id" "title=Name" "sortable=true" "headerClass=sortable")
          #tag( Column "property=description" "title=Description" "sortable=true" "headerClass=sortable")
          #tag( Column "title=" "href=deleteChart.action" "value=Remove" "paramId=id" "paramProperty=id")
        #end

      The href hyperlinks only were displayed when running with the displayTag-1.0b.jar file, but not with the rc1 or rc2 jar file.

      Thanks!
      Allan

        Activity

        Hide
        fabrizio giustina added a comment -
        Testcase added. The example work properly in a jsp, don't know if the problem could be related to its use in a velocity template.
        Show
        fabrizio giustina added a comment - Testcase added. The example work properly in a jsp, don't know if the problem could be related to its use in a velocity template.

          People

          • Reporter:
            Allan Brighton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: