A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSF
Author
Image on a button in jsf
Mateusz Moroz
Greenhorn
Joined: Oct 29, 2008
Posts: 21
posted
Nov 19, 2009 08:32:34
0
Hi,
I'm trying to create a button in jsf with image on it. The effect I need is like on the picture.
Can somebody help?
Regards
temp.png
Sergey Smirnov
Ranch Hand
Joined: May 29, 2003
Posts: 167
posted
Nov 19, 2009 12:35:52
0
Did you try the image attribute that h:commandButton has?
Mateusz Moroz
Greenhorn
Joined: Oct 29, 2008
Posts: 21
posted
Nov 26, 2009 08:12:47
0
Yes, it only switches the button with the image (in html the button is rendered as "< img ... />"), not puts the image on the button.
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Image on a button in jsf
Similar Threads
Print functionality in JSF
Calling a backing bean method from onClick?
Chooser
Modal Window JSF
CommandButton with Image and Label
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter