wood burning stoves 2.0*
The moose likes JSF and the fly likes problem with requestContextPath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "problem with requestContextPath" Watch "problem with requestContextPath" New topic
Author

problem with requestContextPath

Anuar Kabdenkazyev
Greenhorn

Joined: Aug 01, 2008
Posts: 1
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

Joined: Aug 05, 2008
Posts: 9
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


R. Ben Parsons<br />SCJA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with requestContextPath
 
Similar Threads
Winners: Head First SQL
Help! Byte from ByteArrayInputStream to ByteArrayOutputStream converted to -1!!
BufferedImage drawing problems
Problem with reading txt file into 2d array
Process method not being executed eventhough publish is being called