You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dave <ja...@yahoo.com> on 2006/08/29 06:10:08 UTC
graphicImage width
Is there a way to set maximum width for a <h:graphicImage>?
If a image width is less than 200 pixels, use its actual width. If its width is more than 200 pixels, then resize it to 200 pixels.
If I set width="200", the image will always be resized to 200 pixel width, and distorted.
Thanks for help.
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.
RE: graphicImage width
Posted by Guy Katz <gk...@allot.com>.
i dont know if there is anything built in to jsf for this. but if you have the image path binded to a bean property than you can bind the width to another property of that bean and have that bean actualy calculate the width of it's image using java existing classes and determine the width at runtime
-----Original Message-----
From: Dave [mailto:javaone9@yahoo.com]
Sent: Tue 8/29/2006 7:10 AM
To: users@myfaces.apache.org
Subject: graphicImage width
Is there a way to set maximum width for a <h:graphicImage>?
If a image width is less than 200 pixels, use its actual width. If its width is more than 200 pixels, then resize it to 200 pixels.
If I set width="200", the image will always be resized to 200 pixel width, and distorted.
Thanks for help.
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.