<wicket:link><img src="logo.gif" /></wicket:link>

Martijn

On 3/16/08, James Carman <[EMAIL PROTECTED]> wrote:
> Is there an easier way to do package-resourced images in Wicket?  It's
>  pretty easy now, but it seems somewhat redundant to have to do:
>
>  public class MyPage extends WebPage
>  {
>   public MyPage
>   {
>     add(new Image("logo"));
>   }
>  }
>
>  <img src="images/logo.png" wicket:id="logo" />
>
>  Perhaps we could add a new "wicket:" attribute?  Then it would be:
>
>  <img src="images/logo.png" wicket:img-type="package" />
>
>  I don't know about the attribute name, though.  This would allow you
>  to add package-resourced images without having to create Image
>  components in your Java code (not that it's really that difficult).
>  Thoughts?
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

Reply via email to