Skip to main content
I have a strange situation here , The same set of code is executing fine in one line , and failing in the other.  I am attaching the image for more details. Also the trail challenge is in complete throwing an error saying the static resource is not referenced . 

you can see the image icon and kitten being displayed for the two lines that we have written.

Thanks in advance.Use a static resource to display an image on a Visualforce Page
5 answers
  1. Aug 18, 2016, 8:14 AM
    Hi Vinay,

    I Have tested with two lines; it is working for me in chrome.Which browser are you using?

    Please copy paste this code and see if it works.

    <apex:page >

    <apex:image value="{!URLFOR($Resource.vfimagetest,'cats/kitten1.jpg')}"/>

    <apex:image value="{!URLFOR($Resource.vfimagetest,'cats/kitten1.jpg')}"/>

    </apex:page>

    Please let us know if this helps you!

    Thanks and Regards

    Sandhya

     
0/9000