File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

problem with requestContextPath

Anuar Kabdenkazyev

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}
The problem is that the image is simply not displayed
Thanks a lot
R Ben Parsons

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
jQuery in Action, 3rd edition
subject: problem with requestContextPath
It's not a secret anymore!