This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
I agree. Here's the link:
subject: problem with requestContextPath
Similar Threads
Process method not being executed eventhough publish is being called
Problem with reading txt file into 2d array
Winners: Head First SQL
BufferedImage drawing problems
Help! Byte from ByteArrayInputStream to ByteArrayOutputStream converted to -1!!