How to set the width and height of the displayed image in a button
How can I please specify the size of the image that I display in a button which I create dynamically.
HtmlCommandButton button =new HtmlCommandButton();
button.setImage(image.getUrl());
Thanks in advance
Message was edited by:
WebService
# 3
Follow some CSS tutorials to learn more about it.
Here is a page with some links: http://www.google.com/search?q=css+tutorial
Then you're doing or interpreting something wrong. The methods are actually there. I can play with them in my playground and they are also described in the the HtmlCommandButton API: http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/javax/faces/component/html/HtmlCommandButton.html