This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes CommandButton with Image and Label Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "CommandButton with Image and Label" Watch "CommandButton with Image and Label" New topic
Author

CommandButton with Image and Label

Anu Sri
Greenhorn

Joined: May 19, 2008
Posts: 16
Hi,

Is it possible to have a background image and label (text) for a command button with JSF?
Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
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>
-Martin Fowler
nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
When I try it with commandLink:



then only the image is displayed and not the text "hello"
 
GeeCON Prague 2014
 
subject: CommandButton with Image and Label