I would like to alter the <s:transformImageSize> component so that if the width, height and the maintainRatio property were set the scaleToFit method of org.jboss.seam.ui.graphicImage.Image would get called.
How would I best go about implementing this?
I think building my custom seam version is not a good idea. Also the Seam documentation mentions:
It's easy to create your own transform - create a UIComponent which implements org.jboss.seam.ui.graphicImage.ImageTransform. Inside the applyTransform()method use image.getBufferedImage() to get the original image and image.setBufferedImage() to set your transformed image. Transforms are applied in the order specified in the view.