I have to show pictures within a galleria - Element, but it is not possible to use a relative path. When running the application I get no error, but the shown p:galleria is empty.

The script is built as follows:

p:galleria value="#{data.Data.bestandBild.umsetzen}" var="image" panelWidth="900"
panelHeight="600" showCaption="true">
p:graphicImage value="#{data.Data.urlWiki}#{image}" />
/p:galleria>

Source Process Data e.g.: Data.Data.urlWiki: 'E:/fotos/13-14-12-Amersfoort/' Data.Data.bestandBild.umsetzen: 'L1070273.JPG'

The Firebug-console "Fehler" does not show anything, in the Firebug-Console "All" I can see all Pictures e.g.: img id="myForm:j_id_h:j_id_66" src="E:/Fotos/13-12-12-Amersfoort/L1070273.JPG" alt=""

asked 14.02.2014 at 08:31

Richard%20Schmid's gravatar image

Richard Schmid
31111115
accept rate: 25%

edited 20.02.2014 at 08:40

Flavio%20Sadeghi's gravatar image

Flavio Sadeghi ♦♦
1.8k5723

Hello, could you please extend your question with a code sample that shows how you set the the value(s) of a p:galleria and how the p:dialog plays in? What do you mean by absolute paths (absolute to the filesystem or to the webserver)? Also: if you watch the Network traffic with Firebugs, do you see any 404/Page Not Found?

(17.02.2014 at 14:26) Peter Stöckli ♦ Peter%20St%C3%B6ckli's gravatar image

Hi

In the p:grahpicImage value-Attribute two El-expressions are embedded (wikiUrl & image). But the attribute should bind a single expression. Could you try to fetch these strings together with a concat command?:

<p:graphicImage value="#{data.Data.urlWiki.concat(image)}" />
link

answered 20.02.2014 at 07:56

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
7.3k11345
accept rate: 71%

Hi,

I changed the graphicImage value as proposed, but unfortunately the change had no positive effect.

(27.02.2014 at 08:33) Richard Schmid Richard%20Schmid's gravatar image
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:

×1

Asked: 14.02.2014 at 08:31

Seen: 2,142 times

Last updated: 28.02.2014 at 08:42

Related questions