Thats was my first attempt. But i'm using Label/Link IconPanel, in LinkTree.
And these methods use ResourceRefence.
protected ResourceReference getResourceFolderClosed(TreeNode node) {...}
protected ResourceReference getResourceFolderOpen(TreeNode node) {...}
protected ResourceReference getResourceItemLeaf(TreeNode node) {...}
Maybe i can re-write part of the code of Link/Label IconPanel, and create an
Image with a simple Resource...
But i thought that would be better to use wicket code, instead of copy and
modifiy it.
Thanks for the answer!
Juan
On Tue, Feb 26, 2008 at 4:43 PM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:
> dont use a resource reference?
>
> -igor
>
>
> On Tue, Feb 26, 2008 at 10:39 AM, Juan Gabriel Arias
> <[EMAIL PROTECTED]> wrote:
> > Hi all,
> > I'm trying to create a ResourceReference to an image.
> > But i dont need the scope, the name, the local neither the style. I
> just
> > want my image.
> > I can't put that image in my package. This is a wicket/java project,
> and the
> > html, images, styles, javascript etc are in another project.
> >
> > I saw the ContextRelativeResource, so i believe that i should use that.
> But
> > there is no constructor of ResourceReference, or any sub-class to easy
> > create one with that resource.
> >
> > How can i do that?
> >
> > Yhanks in advance!
> > Juan
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>