I have graphic image tag in my project . I have my image inside the projectfolder/webconent/META-INF/resources/images/example.jpg and i declared tag like this

<p:graphicImage library="resources" name="images/example.jpg"></p:graphicImage>

But the image is not displaying

asked 28.10.2013 at 10:43

mprvijay's gravatar image

mprvijay
21467
accept rate: 0%

edited 30.10.2013 at 08:59

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
6.9k11239


The image should not be stored in the META-INF folder. But you can place it in the /webcontent/images/ directory and then reference it either without the library:

<h:graphicImage name="images/example.jpg" />

or with the ivy-webcontent library:

<h:graphicImage library="ivy-webcontent" name="images/example.jpg" />

Image resource could also be stored and consumed from the dialog/resources folder or from the CMS. If no library is declared the lookup for resources which match the name proceeds as follows:

  1. find the resource in the resources folder within the active user dialog
  2. find the resource in the webContent folder of the current project
  3. find the resource in the webContent folder of the required projects

An example implementation is delivered within the Designer in the applications/samples/HtmlDialogDemos folder. Import that project into your designer and inspect the dialog "ch.ivyteam.htmldialog.demo.output.ResourceDemo" for an easy reference.

link

answered 28.10.2013 at 13:55

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
6.9k11239
accept rate: 70%

edited 30.10.2013 at 09:11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×51
×45

Asked: 28.10.2013 at 10:43

Seen: 8,488 times

Last updated: 30.10.2013 at 09:11