all you have to do is call RequestCycle.urlFor(resourceref)  and you will
get the url for that resource, you can then stick it into the src attribute
or whever it needs to go

-igor

On 2/8/07, wicketmarsh <[EMAIL PROTECTED]> wrote:


Hi
I have added ImageButton on a page which add image programatically,
i.e  ImageButton ib = new
ImageButton(id,PackageResource.get(BaseForm.class,images/abc.gif)) here my
abc.gif is relative to baseform class package.

I have added a Mbutton which has got ajax functionality. so Mbutton
extends
WebComponent.

it works fine. I would like to add image programatically , the way it is
added to Imagebutton.

any help would be highly appreciated,

Marsh

--
View this message in context:
http://www.nabble.com/Ajaxbutton---Image-tf3196272.html#a8875046
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to