portlet

Not able to open a portlet in liferay dialog

邮差的信 提交于 2019-12-10 20:48:48
问题 I have a dialog in my portal which opens a portlet. When I click on the link and the dialog opens, the dialog shows You do not have the roles required to access this portlet. However, if I add the same portlet on the page, the portlet opens without any hitch, both on the page and the dialog. What am I missing here? Anybody got any idea ? My Codes are : #set ($profile_url = $portletURLFactory.create($request, "profile_WAR_profileportlet", $getterUtil.getLong($plid), "RENDER_PHASE")) $profile

Customize the search portlet in Plone for specific content types

青春壹個敷衍的年華 提交于 2019-12-10 17:47:10
问题 I'm using the search portlet in certain areas of my website, but I'd like to restrict the results to only search for a specific content type: for example only search the news items, or only show Faculty Staff Directory profiles. I know you can do this after you get to the @@search form through that "filter" list, but is there a way to start with the filter on, so that the "Live Search" results only show the relevant results (i.e. only news items or only profiles). 回答1: I suspect you know it

Giving access to organization pages to new user

旧街凉风 提交于 2019-12-10 16:26:41
问题 In the web application I'm working, I've created an organization site which can be accessed by group/game/home . I've made this default landing page after login. By putting this value in the portal-ext.properties file default.landing.page.path=/group/games/home I've also set these two properties to make sure the user is redirected to the default landing page after successfully login. layout.show.portlet.access.denied=false auth.login.url=/web/guest/login Now, when I add a new user to the

Creating a Liferay portlet configuration page

妖精的绣舞 提交于 2019-12-10 14:15:15
问题 I'm trying to create a configuration page for a Liferay portlet, so I can set some parameters for it. For example I would like to choose what page should a controller display when viewing it. The configuration should be located here: So I've created a controller for the config like this: import com.liferay.portal.kernel.portlet.ConfigurationAction; import javax.portlet.*; public class SandboxPortletConfig implements ConfigurationAction { @Override public void processAction(PortletConfig

Display Liferay portlet inside other liferay portlet

牧云@^-^@ 提交于 2019-12-10 12:19:09
问题 I use Liferay portlet bundle 6.2 (Tomcat) and Liferay IDE(eclipse). I created two Liferay Plugin Project. In the first portlet(first plugin portlet), I save some data by using Portlet Preferences. Now, I will display second portlet in first portlet. How I can do that? I found this following code and this Link Open portlet from other portlet var url; function createRenderURL(portletId) { AUI().ready('liferay-portlet-url', function(A) { var renderURL = Liferay.PortletURL.createRenderURL();

Liferay : Portlets inside portlet

北战南征 提交于 2019-12-10 09:26:19
问题 Is it possible to create a few portlets inside a portlet? I mean a multilevel portlet. 回答1: Yes. You can use the Nested Portlet to this purpose. This is a layout container for other portlets. You can choose the wanted layout in the configuration. 回答2: Yes, definately, you can have portlet within portlet. Liferay provides taglib, thru which you can easily embed different util portlets (web content display, breadcrumb, navigation etc) within portlet 回答3: NESTED-PORTLET Assuming that you are

Series of repeated forms in Spring Portlet MVC

二次信任 提交于 2019-12-09 19:33:06
问题 I have a rather simple use case. The actor is a manager who provides feedback to a list of employees. The view displays a list of employees. The manager (user) can click on each employee upon which a feedback form opens up (inline) to capture the feedback. I have a List<Employee> which I am using to construct the listing of employees on the page. I am not able to understand how to structure and capture the feedback. I intend to have a separate bean, Feedback which correspond to the feedback

Multiple Pages Inside One Portlet

本小妞迷上赌 提交于 2019-12-09 13:47:59
问题 I am curious if anyone knows if it is possible for a single portlet to contain multiple pages, let's say JSP pages. Furthermore is it possible to link to these different pages within the same portlet? For example. Let's say I have a single portlet. And in this portlet I want the initial view to be a JSP page with just 5 links on it to 5 different JSP pages. And when a user clicked on one of these 5 links, it would load the appropriate JSP page into the portlet. The end goal would basically be

Liferay: how to save to portlet user information?

扶醉桌前 提交于 2019-12-09 13:24:58
问题 I have at the welcome page a weather portlet, and user can configure the portlet and select his city. Is it possible to store user information in the portlet preferences, so that every user has his one stored city? Or what is the standard workflow to store user-portlet information without to develop own (persist) service? thx 回答1: The portlet-preferences are in liferay per default not user specific. That can be modified in liferay-portlet.xml with next lines: <liferay-portlet-app> <portlet>

Maven to copy JAR when adding dependencies

不想你离开。 提交于 2019-12-09 09:44:31
问题 I'm currently using IBM Rational Application Development (IBM Eclipse distro) for Portlet development and having a small issue with Maven integration. Here's the situation: 1) IBM RAD has the ability to deploy a Portlet directly from within itself (RUN/DEBUG) In this case, I'm not using Maven generated WAR at all because IBM RAD seems to create the WAR themselves automagically and push it to IBM WebSphere Portal. Which isn't a big deal so far. 2) Maven dependencies are not copied to