Hi list,

I'm using DataTable to render a table. DataTable's markup fragment for the table cells looks like this:

  <td wicket:id="cells">
      <span wicket:id="cell">[cell]</span>
  </td>

When I'm adding Labels, this poses no problems, but in one of my columns I'd like to display an image:

  item.add(new Image(componentId, new Model("status-active.jpg")));

This (I should've known) gives me an error:

Component cell must be applied to a tag of type 'img', not '<span wicket:id="cell">' (line 0, column 0)

I understand that, but my question is: how do I get around this? I can't access the table cell markup. I'm looking at having a WebMarkupContainer wrap my Image in a span or something, but I don't actually see how I should do that (it's getting late I guess).

Any ideas?

cheers,
Gert Jan


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to