liferay-6

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

Bootstrap modal in Liferay

一世执手 提交于 2019-12-05 09:57:49
I use Bootstrap 2.3.2 and Liferay 6.2 bundled with Tomcat. I have some modal windows with complex body structure created in Bootstrap 2.3.2 and I would like to use them in my portal. Here is said that Liferay uses Bootstrap 2.3.2 css, but not Bootstrap 2.3.2 javascript and components like modals, tooltips, tabs, ... are included in AlloyUI. I included Bootstrap 2.3.2 javascript and tried to use my modal windows, but if I want to show a modal window it doesn't appear. I would like to ask, how can i show native bootstrap modals in Liferay. The reason that your modal is not appearing is most

How to share jar within multiple portlets?

瘦欲@ 提交于 2019-12-05 08:02:07
I'm using several jars in my portlets, for instance c3p0. Now I want to avoid to put the jars in every of my portlets lib folders. How can I share one jar file within multiple portlets? And how should I integrate them in the Eclipse IDE? Add an external jar or put them in one dedicated project and include them from there? Another solution would be to put them under ../liferay-portal-<version>/tomcat-<version>/webapps/ROOT/WEB-INF/lib If you place them here you can add the JAR as a dependency for your portlet in the portlets liferay-plugin-package.properties (if you're using Liferay Developer

Including jQuery and other JS files in Liferay Theme

随声附和 提交于 2019-12-05 02:36:16
I use Liferay 6.1 and I created my theme ( sample-theme ) and I want add jQuery . How can I do that? Why I have folders: sample-theme and liferay-work and both have folders: css, js, templates? I created folder _diffs and subfolder js and there copy jQuery and add in portal_normal.vm : <script src="/html/js/jquery/jquery-1.8.2.min.js"></script> And I don't see any changes, Why? How can I add jQuery? Not only to a single portlet but for all. I don't have folder docroot I am use Maven and in src/main/webapp I created folder _diffs and inside folder js , there I add jquery.js and in _diffs

Liferay logging level

橙三吉。 提交于 2019-12-04 23:43:20
问题 Is there a way to set Liferay's global logging level? I am aware of it's console in the Server Administration but I want to set a global level not to a package level. Thanks! 回答1: Because of the way log4j can be configured, any global setting can be overridden by a package level setting. You can remove any configuration individual packages (if you have any). Then the setting for the rootLogger will take effect. log4j.rootLogger=INFO, stdout Update To override Liferay's default logging

How to disable default message: “Your request processed successfully”?

一世执手 提交于 2019-12-04 20:11:20
问题 How would I disable this default message: "Your request processed successfully" for my plugin portlet when an add/update action is performed in my portlet? Also I would want to disable this for my custom configuration page ( configuration.jsp ), this is the configuration page which is shown when we click on the wrench icon which appears on the top-right corner of every portlet. Is there a configuration option anywhere which I can set or some code which I can write to disable it? Or else would

How do I get Sites of which the user is a member in Liferay theme?

痞子三分冷 提交于 2019-12-04 20:03:30
In Liferay 6.1 custom theme - How can I get Sites for a user that it is a member of in a theme? I have seen how the dockbar Go to/My sites gets generated via the Liferay UI taglib. However, I want to get a list of user's sites and list them as part of super navigation bar separate from the dockbar options. Is this possible and what is the API call to get the user's sites in a list? Thanks in advance. From the user object you can retrieve the groups he belongs to: $user.mySites This returns a List<Group> . Once you have the Group you can easily build a URL to the public and private pages of

Users are not getting deleted from Liferay DB

血红的双手。 提交于 2019-12-04 18:40:53
I have deleted users from Liferay UI. Some time its asking to deactivate and then delete. some time only deactivate. And users are not going from db always. So, recreation of same user is not possible as it is throwing errors like "email address already exist or username alreasdy exist". Why user is not getting deleted from DB after deletion from UI? I am using liferay-portal-6.1.1-ce-ga2. How to solve this issue? Prakash K Deactivate and Delete are two different functionalities. When you Deactivate the user remains in the database and only the status is changed to deactivate. This is known as