Forums de discussion
Having problem to call image gallery api?
I tried to import and call the image gallery api (com.liferay.portlet.imagegallery.model.impl.IGFolderImpl) in my custom portlet, but got the below error message.
I also import and call others like below, and they are all working find.
pls kindly help
An error occurred at line: 30 in the jsp file: /view.jsp
com.liferay.portlet.imagegallery.model.impl.IGFolderImpl.DEFAULT_PARENT_FOLDER_ID cannot be resolved to a type
27:
28: IGFolder folder = (IGFolder)request.getAttribute("IMAGE_GALLERY_FOLDER");
29:
30: long folderId = BeanParamUtil.getLong(folder, request, "folderId", com.liferay.portlet.imagegallery.model.impl.IGFolderImpl.DEFAULT_PARENT_FOLDER_ID);
31:
32: List images = IGImageLocalServiceUtil.getImages(folder.getFolderId());
I also import and call others like below, and they are all working find.
<%@ page import="com.liferay.portlet.imagegallery.model.IGImage" %>
<%@ page import="com.liferay.portlet.imagegallery.model.IGFolder" %>
<%@ page import="com.liferay.portal.kernel.servlet.ImageServletTokenUtil " %>
<%@ page import="com.liferay.portlet.imagegallery.service.IGFolderLocalServiceUtil" %>
<%@ page import="com.liferay.portlet.imagegallery.service.IGFolderServiceUtil" %>
<%@ page import="com.liferay.portlet.imagegallery.service.IGImageLocalServiceUtil" %>
<%@ page import="com.liferay.util.BeanParamUtil" %>
pls kindly help
Ray Augé, modifié il y a 15 années.
Re: [Liferay Forums][3. Development] Having problem to call image gallery a
Liferay Legend Publications: 1197 Date d'inscription: 08/02/05 Publications récentes
> com.liferay.portlet.imagegallery.model.impl.IGFolderImpl.DEFAULT_PARENT_FOLDER_ID
For now, in place of this, simply use the absolute value:
[tt]public static final long DEFAULT_PARENT_FOLDER_ID = 0;[/tt]
So, just use [tt]0[/tt]
HTH!
For now, in place of this, simply use the absolute value:
[tt]public static final long DEFAULT_PARENT_FOLDER_ID = 0;[/tt]
So, just use [tt]0[/tt]
HTH!