Fórum

How to do/use server file browser in own portlet?

thumbnail
Thomas Krauß, modificado 11 Anos atrás.

How to do/use server file browser in own portlet?

New Member Postagens: 22 Data de Entrada: 18/08/11 Postagens Recentes
Hello,

I integrated a file upload inside my portlet using the DLAppServiceUtil.
This works and I can see the file inside the document viewer.

But I want to have a server files chooser like the web content editor has, to select a uploaded image (for a "portlet background").
Is there a way to use the existing file browser (server files) or is there a aui/liferay-ui tag to get this browser inside my portlet?

Workflow:
|Button choose file...|
-> window open with file chooser
-> return value: document library url like myside.com/documents/xx/yy/filename

or do I have to code a filebrowser by my own?
or someone has a code example for me?

eichi