I'm trying to create an Image component with a PackageResourceReference to an actual image in my application.  I have something like this:

public class Icons

    private static Log log = LogFactory.getLog(Icons.class);

    public static ResourceReference HOUSE_ICON = new PackageResourceReference( MyStreetPage.class, "images/house_icon.jpg" );

        HOUSE_ICON.bind( Application.get() );

My question is, why is it necessary to call bind().. couldn't this be incorporated in the lazy fetch of the resource?


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Wicket-user mailing list

Reply via email to