I am just trying to write my first component, a box rounded with a
table built of some simple images + content inside. Similar to the
BoxBorder component.
But here is a fragment of my component:

 [..]
  <td width="3" height="3"><img wicket:id="imgLeftTop"
src="imgLeftTop.gif" alt=""/></td>
  <td wicket:id="topBackground" background="topBackground.gif"></td>
 [..]

And  the Java code:
  add(new Image("imgLeftTop"));
  add(???);


Images are in the same package as the component (java + html).

The 1st image (imgLeftTop) works.
How do I use/specify the 2nd image when it is a background for the TD element?
I cannot use just 'Image' class, because I get exception that it is
only allowed for IMG.

Any help?

Dariusz Wojtas


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to