掲示板

tag for image problem

11年前 に Amine Amine によって更新されました。

tag for image problem

New Member 投稿: 21 参加年月日: 12/05/27 最新の投稿
Hello evrey body,

I'm new in liferay and I can't display image with primefaces tag nor with html tag

I trid the following tag

<p:graphicImage width="40" height="60" value="/images/mark.jpg" />

<h:graphicImage url="/ManageIssues/images/mark.jpg" />

<img width="40" height="60" src="/images/mark.jpg" />


Thank yu for your help
11年前 に Amine Amine によって更新されました。

RE: tag for image problem

New Member 投稿: 21 参加年月日: 12/05/27 最新の投稿
Hello every body,
I find the solution the image was in the wrong place but would retrieve this image from data base and display it.
Image is stored as table of byte.

Thank you for your help
thumbnail
11年前 に Neil Griffin によって更新されました。

RE: tag for image problem

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Hi Amine,

Do you need help with figuring out how to display it after retrieving it from the database?

Neil
11年前 に Amine Amine によって更新されました。

RE: tag for image problem

New Member 投稿: 21 参加年月日: 12/05/27 最新の投稿
Hi Neil

yes I didn't find a solution emoticon

thank you for your help
thumbnail
11年前 に Neil Griffin によって更新されました。

RE: tag for image problem

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
I suppose that the "JSF 2" way of doing this would be to provide a custom JSF ResourceHandler in your portlet. I would recommend that you download the jsf2-export-pdf-portlet demo to see an example. Rather than writing a PDF to the response, you would write an image with bytes retrieved from the database.