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?

Reply via email to