ah! thats easy! throught you were using datatable, not dataview

<tr wicket:id="repeating">
<td wicket:id="td1"><img wicket:id="image1"/></td>
...
</tr>

populateitem(item) {
  WebMarkupContainer td1=new WebMarkupContainer("td1") {
      oncomponenttag(tag) { tag.put("background", "foo.jpg"); }
  }

  item.add(td1);
  td1.add(new myimage("image1"));
}

-igor


On 1/16/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:

Hi igor

Thanks again, but I tried it but to no success.

In fact, my issue is that I currently have something like :
        <tr wicket:id="repeating">
                <td><img wicket:id = "image1" /></td>
                <td><img wicket:id = "image2" /></td>
                <td><img wicket:id = "image3" /></td>
        </tr>

However, I would like to do something like this at rendering time:
        <tr>
                <td BACKGROUND="backgroundA1.png">imageA1.png</td>
                <td BACKGROUND="backgroundA2.png">imageA2.png</td>
                <td BACKGROUND="backgroundA3.png">imageA3.png></td>
        </tr>
        <tr>
                <td BACKGROUND="backgroundB1.png">imageB1.png</td>
                <td BACKGROUND="backgroundB2.png">imageB2.png</td>
                <td BACKGROUND="backgroundB3.png">imageB3.png></td>
        </tr>

But I don't manage to define the td background tag...

Do you have any clue ?

Thank again in advance
ZedroS

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to