Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with requestContextPath  RSS feed

 
Anuar Kabdenkazyev
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
I've just started using JSF with the help of a book. I've installed and set up everything that is needed and now I'm just copying everything from the book (simple login application). However I have a problem with the following bit of code:
<h:commandButton action="success"image="#{facesContext.externalContext.requestContextPath}
/images/sumbit.gif"/>
The problem is that the image is simply not displayed
Thanks a lot
 
R Ben Parsons
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the HTML to check that the path it's pointing to is correct? Also check for typos - e.g. maybe your link says sumbit.gif and your image is called submit.gif
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!