Re: [Wicket-user] Location of image files

2006-03-29 Thread Timo Stamm
Frank Silbermann schrieb: But my "src" attribute to be modified _is_ in my HTML, as you can see (value shown is "REPLACE_THIS.png"). The problem is that the existing "src" attribute's value was not replaced. What do I need to do differently? Use this constructor: new AttributeModifier("src",

RE: [Wicket-user] Location of image files

2006-03-28 Thread Frank Silbermann
Of Frank Silbermann Sent: Tuesday, March 28, 2006 1:08 PM To: wicket-user@lists.sourceforge.net Subject: RE: [Wicket-user] Location of image files       -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Tuesday, March 28, 2006 12:46 PM

RE: [Wicket-user] Location of image files

2006-03-28 Thread Frank Silbermann
    -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Tuesday, March 28, 2006 12:46 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Location of image files   it should work, what does the finished output

Re: [Wicket-user] Location of image files

2006-03-28 Thread Igor Vaynberg
, March 28, 2006 11:56 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Location of image files   attribute modifiers do not add attributes into your markup by default - they only modify the ones thats there, if you want to add an attribute you need to add another constructor argume

RE: [Wicket-user] Location of image files

2006-03-28 Thread Frank Silbermann
PROTECTED] On Behalf Of Igor Vaynberg Sent: Tuesday, March 28, 2006 11:56 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Location of image files   attribute modifiers do not add attributes into your markup by default - they only modify the ones thats there, if you want to add an

Re: [Wicket-user] Location of image files

2006-03-28 Thread Igor Vaynberg
attribute modifiers do not add attributes into your markup by default - they only modify the ones thats there, if you want to add an attribute you need to add another constructor argument: new AttributeModifier( "src", /true/, new Model(pictureFile) )also you cannot link to resources under WEB-INF

RE: [Wicket-user] Location of image files

2006-03-28 Thread Frank Silbermann
I wanted a panel constructed with an image filename which would popup the image in another window.  I wanted my code in one place, my static image files stored in the WEB-INF folder of my web module, and couldn’t figure out how to make Image component find them.  Igor replied:    “If they

Re: [Wicket-user] Location of image files

2006-03-14 Thread Igor Vaynberg
n Behalf Of Igor Vaynberg Sent: Tuesday, March 14, 2006 10:13 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Location of image files   there are two parts to this if you want the image to be served from a jar. one. you have to create an initializer and bind the image as a

Re: [Wicket-user] Location of image files

2006-03-14 Thread Johan Compagner
ilto:[EMAIL PROTECTED]] On Behalf Of Igor Vaynberg Sent: Tuesday, March 14, 2006 10:13 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Location of image files   there are two parts to this if you want the image to be served from a jar. one. you have to create an initializer and bin

RE: [Wicket-user] Location of image files

2006-03-14 Thread Frank Silbermann
times?   -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Tuesday, March 14, 2006 10:13 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Location of image files   there are two parts to this if you want the image to be

Re: [Wicket-user] Location of image files

2006-03-14 Thread Johan Compagner
static PackageResourceReferences are still dangerous i think.Because the class can be loaded when not a request is happening.So then the Application object can't be found that is used inPackageResource.exists() which is called in the constructor. johanOn 3/14/06, Igor Vaynberg <[EMAIL PROTECTED]> w

Re: [Wicket-user] Location of image files

2006-03-14 Thread Igor Vaynberg
there are two parts to this if you want the image to be served from a jar.one. you have to create an initializer and bind the image as a package resource:public void init(Application application){        PackageResource.bind(application, Tree.class, "blank.gif");    ...}the Tree.class acts as

[Wicket-user] Location of image files

2006-03-14 Thread Frank Silbermann
I am writing code that will be shared between two web applications. The common code will be packaged in a .jar to be included by both web applications. One common component has a requirement to display an image whose filename (or some other handle) it takes as a parameter. The images that will b