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:[EMAIL PROTECTED]
Sent: Tue 8/29/2006 7:10 AM
To: [email protected]
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.

<<winmail.dat>>

Reply via email to