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",
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
-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
, 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
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
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
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
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
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
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
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
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
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
13 matches
Mail list logo