Example taken from wicket-examples. I think the javadoc related to the
resource classes is not bad, what I think is lacking is a overview on
Resources, ResourceLocators, ResourceReferences etc..

return new ResourceReference(Letter.class, asString() + (enabled ?
"_enabled" : "_disabled"))
{
    protected Resource newResource()
    {  
        // Lazy loading of shared resource
        final DefaultButtonImageResource buttonResource = new
DefaultButtonImageResource(30, 30, asString());
         if (!enabled)
         {
              buttonResource.setColor(Color.GRAY);
         }

         return buttonResource;                         
    }
};

Juergen

On 8/16/05, Phil Kulak <[EMAIL PROTECTED]> wrote:
> I would really appreciate it if someone could let me know if this is
> possible. If it's not currently possible, I'd be happy to submit a
> patch for whatever solution I come up with. I'd like to not resort to
> a servlet if I can help it.
> 
> On 8/15/05, Phil Kulak <[EMAIL PROTECTED]> wrote:
> > So I've got a FileResourceStream and I'd like to give a link to it to
> > the user. ResourceLink takes a ResourceReference, which I don't have.
> > Any ideas? Thanks!
> >
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to