You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Igor Racic <ig...@gmail.com> on 2010/12/19 11:41:14 UTC

GIcon URL

Hi,

That must be something simple.
GIcon (from GMap2) have constructor GIcon (String) which works OK when I put
URL of some external icon.
How to do it when Icon is inside wicket ?
I thought about resources but didn't come with something that works.


Thank you and regards,
Igor

Re: GIcon URL

Posted by Igor Racic <ig...@gmail.com>.
Hi,

Thank you Jeremy, urlFor was missing "ingredient".

Regards,
Igor


2010/12/20 Jeremy Thomerson <je...@wickettraining.com>

> Have you tried
>
> new GIcon(urlFor(new ResourceReference(SomeClass.class,
> "path-to-img-relative-to-class.jpg")));
>
> On Sun, Dec 19, 2010 at 4:41 AM, Igor Racic <ig...@gmail.com> wrote:
> > Hi,
> >
> > That must be something simple.
> > GIcon (from GMap2) have constructor GIcon (String) which works OK when I
> put
> > URL of some external icon.
> > How to do it when Icon is inside wicket ?
> > I thought about resources but didn't come with something that works.
> >
> >
> > Thank you and regards,
> > Igor
> >
>
>
>
> --
> Jeremy Thomerson
> http://wickettraining.com
> Need a CMS for Wicket?  Use Brix! http://brixcms.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: GIcon URL

Posted by Jeremy Thomerson <je...@wickettraining.com>.
Have you tried

new GIcon(urlFor(new ResourceReference(SomeClass.class,
"path-to-img-relative-to-class.jpg")));

On Sun, Dec 19, 2010 at 4:41 AM, Igor Racic <ig...@gmail.com> wrote:
> Hi,
>
> That must be something simple.
> GIcon (from GMap2) have constructor GIcon (String) which works OK when I put
> URL of some external icon.
> How to do it when Icon is inside wicket ?
> I thought about resources but didn't come with something that works.
>
>
> Thank you and regards,
> Igor
>



-- 
Jeremy Thomerson
http://wickettraining.com
Need a CMS for Wicket?  Use Brix! http://brixcms.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org