Questions tagged [portlet]

Java-technology-based web component, managed by a portlet container that processes requests and generates dynamic content.

In common terms a portlet is a tile in a portal, a component of a composite web page. Official definition is

Java-technology-based web component, managed by a portlet container that processes requests and generates dynamic content.

which is cited at least on this reference.

Every portlet technology implementation follows JSR 168 and JSR 286 specifications.

1886 questions
197
votes
4 answers

What exactly is Field Injection and how to avoid it?

I read in some posts about Spring MVC and Portlets that field injection is not recommended. As I understand it, field injection is when you inject a Bean with @Autowired like this: @Component public class MyComponent { @Autowired private…
T. Jung
  • 2,359
  • 3
  • 9
  • 19
98
votes
5 answers

what is the difference between a portlet and a servlet?

I am asked to work on portlets and portals. I want to know the difference between a portlet and a servlet? How / where does a portlet differ (may be functionally) from a servlet?
Rajesh
  • 983
  • 1
  • 7
  • 6
30
votes
8 answers

Restrictions/disadvantages of developing portlets for Liferay

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 developing a normal web application using Spring…
simon
  • 11,971
  • 24
  • 73
  • 108
28
votes
1 answer

Can Plone search be configured to see portlet content?

I just now realized that Plone search doesn't "see" content that is in portlets, after adding about a million static text portlets to a new website. Is there anyway it can be configured to access that content also? Test example, search for "Gwynn"…
feesh
  • 1,238
  • 8
  • 14
22
votes
1 answer

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 deploying it. That's why I want to build, start…
Nahuel Barrios
  • 1,830
  • 18
  • 22
21
votes
2 answers

How to use Ext.define in ExtJS 4?

I'm new to ExtJS 4 and need some help understanding how the Ext.define works, please. In fact what I want to do is something similar to the portlets in the portal example, in my application I will need so many objects to add in my different tabs, so…
Armance
  • 4,832
  • 14
  • 55
  • 77
20
votes
3 answers

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 pass that array to the view.jsp. How to do that?
Almas Adilbek
  • 4,171
  • 10
  • 55
  • 94
19
votes
1 answer

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 like Liferay. Some of us on the team have experience…
binarygiant
  • 5,982
  • 10
  • 44
  • 64
16
votes
1 answer

Java Portals and Portlets

The Java world has a JSR-286 standard for how portals and portlets should interoperate: software components sharing a unified web page. There seem to be a number of portal implementations. But is there a live "marketplace" of interchangeable…
Daniel Earwicker
  • 108,589
  • 35
  • 194
  • 274
16
votes
1 answer

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
  • 630
  • 3
  • 12
  • 31
15
votes
4 answers

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 execute some code when users change their password.
Joshua
  • 493
  • 1
  • 12
  • 25
15
votes
1 answer

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 instanceable portlets (like web-content display and…
Prakash K
  • 11,537
  • 5
  • 49
  • 107
14
votes
1 answer

Angular 2 Components vs Portlets

In the new Angular 2, we have Components. Can this be compared to Portlets? Even though this is not independently deploy-able. What are the pros and cons of these two approaches?
Lijin
  • 210
  • 2
  • 15
14
votes
3 answers

Changing data on GET page request (dealing with preloading requests)

I have a portlet. When the portlet loads, then before the first view is rendered, in some cases there is a need to call a repository which changes data in the database. I wouldn't go into more detail about why this is necessary and answers about…
Reins
  • 1,036
  • 1
  • 14
  • 33
13
votes
3 answers

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 hope this helps someone :) (Pre requisites for…
mico
  • 12,285
  • 12
  • 55
  • 91
1
2 3
99 100