File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
CommandButton with Image and Label
Joined: May 19, 2008
Jul 26, 2008 06:54:00
Is it possible to have a background
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"
I agree. Here's the link:
subject: CommandButton with Image and Label
Supporting background images in buttons
JButton background in SWING
JLabel and ImageIcon question
Supporting background images in JButton .. I need help here
Command button click issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015