aspose file tools*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem with requestContextPath