#6 Using ItemTemplates in DataTable

closed-accepted
amr eladawy
None
5
2009-04-26
2009-04-12
Anonymous
No

Currently DataTable is rendering the data in form of Text, we need t customize the rendering of columns to be anything..

Discussion

  • amr eladawy
    amr eladawy
    2009-04-26

    done

    now inside the datacolumn you can add this code

    <datacolumn>
    <itemTemplate>
    <a href="/view.jspx?id=${user.id}" >username : ${user.name}</a>
    </itemTemplate>
    </datacolumn>

    you need to declare user as attribute in the datatable/listtable

    <datatable var="user">

    this mean that user is the current row that is being rendered.

     
  • amr eladawy
    amr eladawy
    2009-04-26

    • assigned_to: nobody --> amreladawy
    • status: open --> closed-accepted