Re: onload event on img-tag

2012-05-29 Thread Pasithee Jupiter
Thanks a lot. That works like a charm. cheers On Mon, May 28, 2012 at 9:02 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Do something like: img = new NonCachingImage(...); img.add(new AttributeModifier(onload, yourStuffHere)); form.add(img); On Mon, May 28, 2012 at 1:21 AM,

Re: onload event on img-tag

2012-05-28 Thread Martin Grigorov
Hi, Do something like: img = new NonCachingImage(...); img.add(new AttributeModifier(onload, yourStuffHere)); form.add(img); On Mon, May 28, 2012 at 1:21 AM, Pasithee Jupiter pasit...@gmail.com wrote: Hi all How can i add the onload attribute to an image? or is it possible to prevent wicket

onload event on img-tag

2012-05-27 Thread Pasithee Jupiter
Hi all How can i add the onload attribute to an image? or is it possible to prevent wicket overwriting html attributes on the img-tag? In my HTML I have a form, and inside the form an img and several input fields and a button. Click on the button triggers an ajax request and returns new form