How to reference an img in p:graphicImage from the resource folder [duplicate]
问题 This question already has answers here : How to reference CSS / JS / image resource in Facelets template? (4 answers) Closed 3 years ago . I have an image in the following path: resources \_____img \_______sites \_______reddit.png I used this command line to reference it: <p:graphicImage library="img" name="/sites/reddit.png"/> but in the development console it says: GET http://localhost:8080/RES_NOT_FOUND 404 () and the image is not rendered. What's wrong? 回答1: Kukeltje's suggested url (What