This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Image on a button in jsf  RSS feed

 
Mateusz Moroz
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[Thumbnail for temp.png]
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try the image attribute that h:commandButton has?
 
Mateusz Moroz
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it only switches the button with the image (in html the button is rendered as "< img ... />"), not puts the image on the button.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!