Questions tagged [liferay]

Liferay is an open source JSR 286 compliant portal and social platform, written in Java. It provides fully functional built-in portlets (60+) and also various integration points to seamlessly integrate with other third-party softwares like Alfresco, Sharepoint etc. Make sure to also tag with the specific version that you're asking about.

Filter by
Sorted by
Tagged with
41 votes
2 answers
16k views

To Go or Not To Go with Liferay? What's the good, bad, and ugly? [closed]

We are evaluating several solutions for a new web thing we're looking to build. There are several aspects to it, including user management, content management, campaigns, community, and financial ...
Alexx's user avatar
  • 3,632
30 votes
8 answers
14k views

Restrictions/disadvantages of developing portlets for Liferay [closed]

I'm considering developing an application as portlets, to be integrated in Liferay portal. Are there any significant disadvantages or restrictions in developing such an application, as opposed to ...
simon's user avatar
  • 12.8k
28 votes
7 answers
36k views

How can I check the version of a Liferay instance?

I have several instances of Liferay Portal (bundled with Apache Tomcat 5.5.x/6.x) and I need to know how to check the version of those Liferay instances. Thanks in advance.
Rubens Mariuzzo's user avatar
26 votes
5 answers
45k views

Hibernate: No CurrentSessionContext configured

I keep getting a : HibernateException: No CurrentSessionContext configured! in my code. The only information other searches that returned is that the culprit is: <property name="...
jconlin's user avatar
  • 3,856
22 votes
5 answers
6k views

How to download a file from AJAX request in Liferay serveResource(-, -) method

I have a requirement like: I am making an AJAX request to pass some data to server. In my server I am creating a file using that data. "Now problem is the file is not getting downloaded to client-...
Chandan Prakash Sharma's user avatar
22 votes
1 answer
4k views

Hot deploy Liferay Maven portlet from Intellij Idea to Liferay Tomcat bundled

I'm developing a Liferay portlet and I can't stand waiting for Maven to build the .war file and then copy that .war to LifeRay's auto-deploy directory to finally wait (again) till LifeRay finishes ...
Nahuel Barrios's user avatar
20 votes
3 answers
34k views

Creating liferay portlet - how to pass data to view.jsp from Java class?

I'm trying to create portlet in liferay with just only from a JSP file called view.jsp. What I need is: When the portlet loads, I want to call custom Java class where I generate an array. I need to ...
Almas Adilbek's user avatar
19 votes
1 answer
4k views

Alternative to Liferay/JSR 168 and 286 Portals?

My team has been writing a dashboard application using Node.js, Twitter Boostrap, Mongo DB, and Mule for an ESB. Recently an executive asked us to change our approach to a Portal/Portlet container ...
binarygiant's user avatar
  • 6,402
18 votes
4 answers
31k views

Programmatically get the url of a page in liferay

I want to create a link in a portlet so that I can navigate to a different page in the liferay portal. I order to do that I am looking for an API (can be liferay specific) that given a page name, ...
bernardn's user avatar
  • 1,711
17 votes
1 answer
18k views

Remove java exception breakpoints when debugging Liferay in eclipse

By debugging of Liferay Portal, that is tomcat application, eclipse make usual stop at ThreadPoolExecutor$Worker.run() line: 912 although I don't set a breakpoint at this class. The ThreadPoolExecutor ...
Mark's user avatar
  • 18.3k
16 votes
1 answer
17k views

How to show error message in liferay portal?

How to show error message in liferay portal? I read on liferay.com site that for show error message I can use liferay-ui:error tag from tag library, but it's not working, how to use it?
test1604's user avatar
  • 620
16 votes
1 answer
10k views

How to find portlets added on a particular page in Liferay?

How can I find which portlets are added on a particular Liferay page? For Example: I have three pages: Welcome, Wiki and Search. Now all these pages have portlets added on them and some of them are ...
Prakash K's user avatar
  • 11.7k
16 votes
3 answers
35k views

How to submit form using Ajax request in Liferay?

I am newbie in liferay portal. I have developed one portlet in liferay for demo. I used inter portlet communication in this example. What i am doing is:- I have one search portlet in which i am ...
Scorpion's user avatar
  • 6,851
15 votes
4 answers
16k views

Accessing the user from a liferay portlet?

I'm attempting to develop a portlet for liferay. How can I get access to the username and password (and other data liferay has) of the user that's currently logged in? I'd also like to be able to ...
Joshua's user avatar
  • 493
14 votes
3 answers
28k views

Get the current user Liferay using a simple Java code

I'm working with : Liferay 6.0.6 with JBoss 5.1 and Struts2. My question is, how to get the current user in Liferay once logged in, using a Java code.
Sabrina's user avatar
  • 143
14 votes
2 answers
641 views

How to tell if JDK is available from within running JVM?

Note: All the similar questions are answering this from the perspective of the shell (e.g. Is javac available? java -version or which java). I'm looking explicitly for the perspective of the currently ...
Olaf Kock's user avatar
  • 47.5k
14 votes
2 answers
32k views

How to set eclipse to ignore the "Classpath Dependency Validator Message" Warning

I would like it to have no warnings in my eclipse projects, but I get this one warning: Classpath entry org.eclipse.jdt.USER_LIBRARY/Liferay 6.1 GA Plugin API will not be exported or published. ...
Mark's user avatar
  • 18.3k
14 votes
6 answers
87k views

PKIX path building failed in Eclipse

i'm working with Liferay and i'm using eclipse, and running a client/server model, using an encrypted socket (SSL). Currently, my application is running the client/server connection ok when I run ...
El0din's user avatar
  • 3,308
14 votes
1 answer
1k views

Dynamic columns in liferay-ui:search-container?

I have tried the liferay-ui:search-container to fetch and display the database table records on UI in a table/grid format. By using the liferay-ui:search-container I am getting the output as shown ...
Prasad's user avatar
  • 1,156
13 votes
3 answers
30k views

How to deploy portlets to Liferay?

I have faced problems in trying to install new portlets to Liferay running on Glassfish domain. I figured out the flow very lately and want to share it with others also. So, please read the answer and ...
mico's user avatar
  • 12.7k
13 votes
1 answer
1k views

How can a Liferay portal be placed under version control?

What's a good way to put a Liferay portal under version control? By this, I don't mean versioning the portlets we wrote, but the actual layout and configuration of a running site. When setting a new ...
Edward Samson's user avatar
12 votes
5 answers
35k views

How to get global (company) group id in Liferay?

How to get the global (company) group id in Liferay without accessing ThemeDisplay? P.S.: with ThemeDisplay it is simple: themeDisplay.getCompanyGroupId().
Mark's user avatar
  • 18.3k
12 votes
7 answers
26k views

How to disable Liferay portlet cache?

I am developing a portlet for Liferay Portal. I have disabled CSS and JavaScript caching by using these codes in portal-developer.properties file: theme.css.fast.load=false theme.images.fast.load=...
rahim asgari's user avatar
  • 12.3k
12 votes
0 answers
3k views

What is the alternative to an enterprise portal strategy in the Java space? [closed]

**I just got my wrist slapped for not having a question that goes quite along with the spirit of stackoverflow. On the suggestion of an SO mod, I've posted this question again over at programmers ...
Cameron McKenzie's user avatar
11 votes
2 answers
10k views

Difference between user groupId and scopeGroupId

Whats the difference between themeDisplay.getUser().getGroupId() and themeDisplay.getScopeGroupId()? If I retrieve Layouts (pages) from it, would they have any different URL pattern like, /web-or-...
Whimusical's user avatar
  • 6,501
11 votes
2 answers
16k views

Change the default language in Liferay

How to change the default for language? When a user logs in for the first time, the default language is English, and I need to change that.
Kojja's user avatar
  • 125
11 votes
2 answers
2k views

JUnit and Mocks in Liferay

I need to make JUnit tests using Mockito or PowerMock or smth else but I don't know what to start with. I created testing folder, set mockito, but what should I do next? I couldn't find any examples ...
Al.Boldyrev's user avatar
10 votes
4 answers
24k views

How do I use autologin in liferay?

I want to login my users automatically from our application. I know liferay has an auto login feature, but I don't know how to use it. I didn't find much valuable information on the web. What do I ...
Luke's user avatar
  • 5,901
10 votes
1 answer
23k views

Severe security constraints while tomcat 8 startup with liferay

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 ...
abhineet's user avatar
  • 195
10 votes
2 answers
1k views

why settimeout not delay the function execution?

function tryToDownload(url) { oIFrm = document.getElementById('myIFrm'); oIFrm.src = url; // alert(url); // url=escape(url); setTimeout(deletefile(url), 25000); } ...
BhavikKama's user avatar
  • 8,674
10 votes
5 answers
11k views

Is it possible to add Extra Fields Under Create User in Liferay

I am using Liferay 6 for portal Development . During Creating Users under Liferay , i need to add some extra Fields also ?? Please let me know if this is ppossible or not ?? Please see the screen ...
Pawan's user avatar
  • 31.9k
10 votes
2 answers
22k views

How to get Portlet Id using the portlet name in Liferay?

I have a requirement of getting resource permission using portlet name. I will have the name of the portlet not the Id. Resource Permission name for a portlet is that portlet's Id. I checked the ...
Vijayalakshmi's user avatar
10 votes
10 answers
18k views

Liferay 6 Using Common Service Builder layer Error - BeanLocatorException - BeanLocator has not been set

We are trying to use liferay service builder as a common layer for all our portlets. We have created a separate common portlet project where we are building the service using service.xml This ...
Kzvi 's user avatar
  • 529
10 votes
4 answers
9k views

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

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.. ...
MadCoder's user avatar
  • 641
10 votes
2 answers
8k views

"A is not defined" inside of <aui:script> block

I'm trying to extend some functionality of an existing Liferay portlet. As part of this, I would like to use Alloy UI to modify the value of a field in the portlet. There's a pre-existing <aui:...
red_sky's user avatar
  • 834
10 votes
2 answers
5k views

Testing for custom plugin portlet: BeanLocatorException and Transaction roll-back for services testing

My Problems: I can test successfully for CRUD services operation. I was doing an insert on @Before [setUp()] and delete of same data on @After [tearDown()] but going forward I would need to support ...
Prakash K's user avatar
  • 11.7k
10 votes
1 answer
2k views

Closing a Liferay popup (in new browser window) using Selenium2 with the FirefoxDriver?

I am attempting to automate some test cases on a Liferay portal server using Selenium 2. Many Liferay actions open up new browser window pop up (like user impersonation). Here is an example link (...
Lucas's user avatar
  • 14.6k
9 votes
1 answer
9k views

How to set size of string column using service.xml or Service Builder?

Pre-history: I get JDBCExceptionReporter data exception: string data, right truncation exception on update of entities. I have found that this means, the data is too big for the specified varchar. ...
Mark's user avatar
  • 18.3k
9 votes
4 answers
13k views

How to disable js and css caching in liferay?

I am developing a theme for liferay,but liferay caching system does not let me to see changes. How can i disable liferay js and css caching? PS: I am using Liferay version 5.1.1
rahim asgari's user avatar
  • 12.3k
9 votes
1 answer
11k views

respond to http request with json object in portlet

I am a beginner in liferay portlet development and I am developing a portlet that receives a http get request, processes some information and than it has to return a json object. My problem is that my ...
layser's user avatar
  • 2,068
9 votes
2 answers
27k views

How to obtain the download url for a document library content programmatically

I have several contents in my document library (images, documents, videos...) and I want to obtain the download url for each of them programmatically, so I can show them on a jsp in a custom portlet. ...
stoldark's user avatar
  • 454
9 votes
1 answer
19k views

How to get size of list in freemarker?

I have created a content template where user can create multiple cards/boxes.It works well but i would like to change the css if user create just one box. I tried it with getList()?size but it didnt ...
user1953051's user avatar
9 votes
1 answer
4k views

How to add jstl to a Liferay portlet?

I have been looking here in SO and other places and I have not found the exact answer to this question. So here goes: What is the best way to add support in my Liferay portlets to use JSTL tags? Of ...
stoldark's user avatar
  • 454
9 votes
2 answers
14k views

Steps for Export and Import in Liferay

I have built a website in Liferay using eclipse IDE. Please tell me the step by step procedure for export/import or publishing website from development machine to deployment machine. . Thanks
Komal Arora's user avatar
9 votes
4 answers
7k views

How to embed WebContent in freemarker Liferay 7 theme?

I have found how to embed WebContent in Liferay 6.2 theme using journalContentUtil.getContent method. My question is how to do the same thing in Liferay 7?
Stefania Izzo's user avatar
9 votes
1 answer
11k views

Create object in velocity template

I am writing velocity templates for my liferay theme and I am wondering, whether it is possible to create a new object inside the velocity template. The reason is that in liferay there is no ...
Patrick Cornelissen's user avatar
8 votes
5 answers
7k views

How to make Liferay not produce condensed HTML code?

I found that Liferay transfers my JSP code in a somehow "condensed" way -- putting most of the text into a few very long lines. This makes it uncomfortable to debug javascript. Is it possible to ...
Dims's user avatar
  • 49.3k
8 votes
2 answers
10k views

How to disable default message: "Your request processed successfully"?

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 ...
Prakash K's user avatar
  • 11.7k
8 votes
1 answer
36k views

memberOf vs. groupMembership in LDAP (Liferay)

What is the difference b/n memberOf attribute and groupMembership attribute when used in LDAP Authentication settings in Liferay? The users are imported successfully. The groups are also imported ...
Ashok Goli's user avatar
  • 5,163
8 votes
5 answers
8k views

Freemarker does not assign staticUtil

I worked Application Display Templates on liferay 6.2, I use freemarker help pagination the dynamics data list of liferay. When I upgrade to liferay 7, it is a problem. Liferay 7 use code <#assign ...
lee trj's user avatar
  • 83

1
2 3 4 5
130