Image image = new Image("img", new ResourceReference(HomePage.class,
"Circle.gif"));
isn't so bad, is it?
Eelco
On 12/4/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>
> In wicket Image
>
> why cant one simply bind to a Packaged Resource Like this:
>
> Image image = new Image("img",new
> Model("com/mypackage/Circle.gif"));
>
> assuming my Circle.gif is found in that package context
>
> Just why? there has to be a reason :) and please dont paste me this code:
>
> PackageResource IMG = PackageResource.get(HomePage.class, "Circle.gif");
> Image image = new Image("img",IMG);
>
> because the first is one line and the second is two lines
> ---
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user