Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Amine Amine
tag for image problem
September 17, 2012 8:04 AM
Answer

Amine Amine

Rank: New Member

Posts: 21

Join Date: May 27, 2012

Recent Posts

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
Amine Amine
RE: tag for image problem
September 17, 2012 8:58 AM
Answer

Amine Amine

Rank: New Member

Posts: 21

Join Date: May 27, 2012

Recent Posts

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
Neil Griffin
RE: tag for image problem
September 19, 2012 10:14 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2145

Join Date: July 26, 2005

Recent Posts

Hi Amine,

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

Neil
Amine Amine
RE: tag for image problem
September 22, 2012 6:42 AM
Answer

Amine Amine

Rank: New Member

Posts: 21

Join Date: May 27, 2012

Recent Posts

Hi Neil

yes I didn't find a solution emoticon

thank you for your help
Neil Griffin
RE: tag for image problem
September 25, 2012 8:50 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2145

Join Date: July 26, 2005

Recent Posts

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.