Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
mehmet tasar
Vaadin Image Showing
December 27, 2012 3:25 AM
Answer

mehmet tasar

Rank: Junior Member

Posts: 47

Join Date: March 6, 2011

Recent Posts

Hi All,

In Vaadin, How can I put an Image to Panel? The image is in document library.
Thanks.
David H Nebinger
RE: Vaadin Image Showing
December 27, 2012 7:58 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6274

Join Date: September 1, 2006

Recent Posts

Vaadin uses resources to serve up static content. For example, there's the ClasspathResource which will stream a resource from an image in the classpath.

But in the end it's a simple interface that you need to support to create an input stream from your object. So you'd fetch the object from the doc library, wrap the object w/ the interface (I think it's a StreamResource interface) and feed the stream back to the Vaadin component.