First, create an "ExternalImage" class as described in https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
Add <img wicket:id="localizedImage" /> to your markup Then in your code: ResourceReference imageReference = new ResourceReference( ScopeClass.class, "image_file_name", locale, style); String url = RequestCycle.get().urlFor( imageReference ).toString(); add( new ExternalImage( "localizedImage", url ) ); Not if ResourceReference will "localize" automatically - or you'll have to construct the "localized" filename yourself, in any case - that should do the trick. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com 2010/5/12 Ed _ <ed_b...@hotmail.com> > > Could you explain that a bit. > thx! > > > From: cika...@gmail.com > > Date: Wed, 12 May 2010 15:47:56 -0700 > > Subject: Re: localizing images > > To: users@wicket.apache.org > > > > Use parameterized ResourceReference's > > > > Žilvinas Vilutis > > > > Mobile: (+370) 652 38353 > > E-mail: cika...@gmail.com > > > > > > On Wed, May 12, 2010 at 3:38 PM, Ed _ <ed_b...@hotmail.com> wrote: > > > > > > > > > > > Hi, > > > Wanted to see how one could localize images. Esp if they are not in the > > > same folder as the src code. > > > wicket:link seems to only want to look in the local folder. If I > specify > > > the path in the src attribute that doesn't work. > > > <wicket:link> > > > <img src="/go/to/a/different/location/myimg.gif" > > > /> > > > </wicket:link> > > > > > > thx, > > > Ed > > > _________________________________________________________________ > > > The New Busy think 9 to 5 is a cute idea. Combine multiple calendars > with > > > Hotmail. > > > > > > > http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5 > > > > > _________________________________________________________________ > Hotmail has tools for the New Busy. Search, chat and e-mail from your > inbox. > > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 >