Right, this will probably do the trick. My problem will be solved with this.
Thanks a lot.

But ... the question how to set background in components for TD or
other HTML elements is still open. No problem if this is done directly
in a HTML page (just use traditional link), but it is a problem if one
wants to make component and reference resource from a classpath.
Or maybe I am wrong? Is there any object in Wicket that lets me easily
reference any classpath resource in a webpage? a css stylesheet,
image, javascript, maybe some SWF file, etc ... - that can be added to
any html element property?
The framework itself should not limit using valid HTML code.

Dariusz Wojtas
> I would solve this with CSS. Use an external CSS file that contains
> the styling for the table. Images referenced in the CSS file are
> relative to the CSS file's location, regardless of the url of the
> page using the CSS. So this could work (completely untested of course):
> 
>      <!-- in your html -->
>      <table class="roundedBorder">
>          <tr class="topRow">
>              <td class="topLeft"></td>
>          [.....]
> 
>      /* in CSS */
>      table.roundedBorder td.topLeft {
>          width: 20px; height: 20px;
>          background: url(images/topleft.gif) no-repeat;
>      }
> 
> etcetera. Google for "css rounded box", you'll see a lot of examples,
> that don't even use tables most of the time. This one's nice: <http://
> www.vertexwerks.com/tests/sidebox/>
> 
> cheers,
> Gert Jan


-------------------------------------------------------
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