Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
CommandButton with Image and Label
Joined: May 19, 2008
Jul 26, 2008 06:54:00
Is it possible to have a background image and label (text) for a command button with
Joined: May 10, 2008
Jul 27, 2008 03:04:00
Not sure. Why don't you try with commandLink?
“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
Joined: Jun 28, 2008
Nov 13, 2008 03:45:00
When I try it with commandLink:
<h:commandLink view="show.xhtml" value="Hello"> <h:graphicImage value="../myImage.png" /> </h:commandLink>
then only the image is displayed and not the text "hello"
subject: CommandButton with Image and Label
View Multiple images in a single window
Image on the right side of a JButton
Adding an Image to a Panel
WA #1.....word association
Images on JLabels
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013