I'm still trying to figure this out. I would like to be able to do something
like the following:
HTML:
img wicket:id=testimage
JAVA:
public class ImageTestPage extends WebPage{
public ImageTestPage() {
Image myImg = new Image(testimage);
class MyImage extends WebComponent {
public void onComponentTag(ComponentTag tag) {
tag.put(src, url);
...
}
}
On Mon, Dec 5, 2011 at 7:16 PM, Daniel Watrous
daniel.watr...@bodybuilding.com wrote:
I'm still trying to figure this out. I would like to be able to do something
like
I think you can't do this without markup. Put in DB binary data, width
and height and pul it out then and with this data modify markup. If
image doesn't have exif data you don't know dimensions (I think...)
Daniel Watrous wrote:
I'm still trying to figure this out. I would like to be able to
class myimage extends image {
oncomponenttag(tag) {
Integer width=getImageWidth();
Integer height=getImageHeight();
if (width!=null) tag.put(width, width);
if (height!=null) tag.put(height, height);
}}
-igor
On Mon, Dec 5, 2011 at 10:20 AM, John Toncart