0

How can I have additional html elements in display tag?

<display:table name="list" pagesize="3">
    <display:column property="name" title="NAME"/>
</display:table>

I want the column name with a hidden input.

Thanks

JR Galia
  • 17,229
  • 19
  • 92
  • 144

1 Answers1

1

Like this:

<display:table name="list" pagesize="3" id="row">
    <display:column title="NAME">
         <input type="hidden" name="..."> 
    </display:column>
</display:table>

You cannot mix with using the property attribute in display:column, but having added the id="row" you can now access the "row" object inside the element, like:

<% ((YourRowBean)row ).getName() %>

or

${row.name}
guido
  • 18,864
  • 6
  • 70
  • 95