liferay

Eventing in Liferay Portlets

感情迁移 提交于 2019-12-06 03:39:53
问题 In any portlet application, if the same page containing a portlet is opened in two browser tabs, how is the event in the first page distinguished from the second page? I want to assign a unique Id for each event, store it and append it to the URL so that the link can be shared. Can someone provide their thoughts on this ? Also, if the page URL is opened on other computer the data shown on the page is the same as the data seen on the first computer. This is being set globally. How can I

How to add css to Vaadin / Maven project?

二次信任 提交于 2019-12-06 03:32:04
问题 There exists a question at SO about how to add css to Vaadin project. The tip there was to add css at /WEB-INF/VAADIN/themes/ location. My problem is that Vaadin projects normally have WEB-INF folder under WebContent and now on Maven the similar folder is under webapp . This seems to be causing that my css changes do not take effect. Also, is it necessary to have the custom css in same sub-structure as the original css? I want to modify table css and don't know if the css needs to be in a

How to get all logged in users list in Liferay?

人走茶凉 提交于 2019-12-06 02:31:11
I want to get all users login detail as Administrator in liferay. User login from where is doesn't matter but i want to see list of all users which are login at a time. when user login it will send some identification to admin. Control Panel's Monitoring option allows you to see all of the live sessions in the portal. For performance reasons, this setting is generally turned off in production. To enable display of live session data, set the portal property live.users.enabled to true. 来源: https://stackoverflow.com/questions/16085553/how-to-get-all-logged-in-users-list-in-liferay

Severe security constraints while tomcat 8 startup with liferay

混江龙づ霸主 提交于 2019-12-05 22:35:30
问题 I am getting the below severe message while the tomcat 8 comes up with liferay. SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/bg/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered. 03-Sep-2015 07:06:00.733 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security

How to obtain the languageid in a Liferay theme with velocity

泄露秘密 提交于 2019-12-05 21:02:39
For the current theme im creating there are multiple images that require to change based on the current language. For example if the user is visiting the page in english we would load image_ languageid .jpg How can you replace languageid with the actual id of the language in velocity & liferay? Is this a good technique or is there a nicer one? vinzcelavi Try adding this line in init_custom.vm or portal_normal.vm #set ($language_id = $themeDisplay.getLanguageId()) 来源: https://stackoverflow.com/questions/8254603/how-to-obtain-the-languageid-in-a-liferay-theme-with-velocity

Unable to view deployed Liferay portlet in the add >> more option

一笑奈何 提交于 2019-12-05 20:58:05
问题 I have created a sample Liferay portlet and it has successfully deployed. But, the eclipse console didn't say "1 portlet is ready for use". And, I couldn't find this portlet in the Add >> More.. option on a Liferay page. 回答1: As Mark mentioned, it is undeterministic and it sometimes happen. I usually follow the following steps and after this it works normally. Steps: remove all the references of the portlet from webapps. stop the server deploy the portlet's WAR restart the server check the

Where to place resource-action-mapping in Liferay-Portlet?

走远了吗. 提交于 2019-12-05 17:42:43
I am trying to add permissions to a Liferay-Portlet based on the documentation of Liferay . Since the Portlet will be delivered in a war-package, I want to mantain the permission definition of the portlets inside the portlet itself. I created a file resource-actions.xml with the following content (portlet-name is identical to the name specified in portlet.xml and liferay-*.xml): <?xml version="1.0"?> <resource-action-mapping> <portlet-resource> <portlet-name>test-portlet</portlet-name> <supports> <action-key>SELECT</action-key> <action-key>VIEW</action-key> <action-key>TEST_PERM</action-key> <

Liferay Scheduler not working after server restart

空扰寡人 提交于 2019-12-05 17:15:23
I am scheduling a job using the code below. @Controller @RequestMapping("VIEW") public class MyController { @RenderMapping public String defaultView() { try { String cronText = "0 30 12 1/1 * ? *"; String description = "Message Scheduler Description"; String destinationName = DestinationNames.SCHEDULER_DISPATCH; int exceptionsMaxSize = 0; String portletId = "portletId"; Message message = new Message(); message.put(SchedulerEngine.MESSAGE_LISTENER_CLASS_NAME,SchedulerListener.class.getName()); message.put(SchedulerEngine.PORTLET_ID, portletId); Trigger trigger = new CronTrigger

Controling the size of a Portlet in Liferay

不想你离开。 提交于 2019-12-05 16:59:55
I have a simple Vaadin portlet which displays an Embedded page e.g www.stackoverflow..com. In Liferay I set the page layout where the portlet is to 1 column Layout so that the portlet fills out the full page. Now if I resize my browser (Firefox 11) the portlet is not being effected at all. Is there a way to make my Portlet resize itself if I resize my Browser ? I checked the ?debug console there are no layout errors and if I resize my broswer vaadin seems to call some resize funktions to set the new height, Width Running layout functions due to window resize New window width: 1265 New window