portlet

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 framework? Liferay seems to require that all content is added as portlets. Another option I p...

Liferay-ui:icon localization

Hi, I'm currently working on a portlet for the Liferay portal server. I'm using the liferay-ui:icon constructs in my JSP code which support already the localization in many different languages. However I now found one entry which doesn't seem to be localized: <liferay-ui:icon image="add_article" message="add-article" label="true" url="...

How to display Excel content from Struts portlet on Websphere Portal

Here is the code, it don't display the .csv file: public class ForwardAction extends MultiAction { private static final String FILE_ERROR = "<h3><center>INVALID FILE</center></h3>"; public ActionForward doVizualizare(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exceptio...

Use GWT+Eclipse to develop and deploy JSR-168 portlets

I have a GWT app that I want to build as a Portlet. I have already done that with Liferay but the portlet generated (.war file) cannot be deployed into Apache Pluto. I would like to know if anybody has some HOWTO info about how to build JSR-168 portlets (with GWT and Eclipse) that can be deployed in any JSR-168 compliant portal. I'm not...

Portlets - Keeping session alive from server side

Hi, I am implementing jsr 186 portlets, with some servlets to the mix to implement some ajax. The problem is if I only make AJAX calls for some time, I lose the session. Strangely, keeping alive the servlet session does not prevent the portlet session from timing out. Is there a way I can keep the session alive from within my servlets,...

Liferay portlet development with eclispe and pugins SDK

I am not sure, if this is a progamming question in the scope of this website. I am trying to create some simple portlet, which has some jsp Pages communicating with the java backend and vice versa. But any documentation states differen procedures, filenames and functions, than those used in the basic portlet, created by the Liferay plugi...

Can we have a single portlet instance on multiple pages in liferay?

Can we have a single portlet instance on multiple pages in liferay? ...

Accessing the user from a liferay portlet?

Hello, 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. Thank you! Joshua ...

Setting up a new website with Liferay Portal - basic steps?

I know this is not specifically a programming question, but programmers will often have to do this work. How do I create a website with Liferay portal - the docs are pretty light on this fundamental issue and are all for version 4.4. I am using version 5.2 and the docs don't seem to be relevant. Do you know what the basic steps are. So...

How is using portlets any better than just using server side includes?

The idea behind portlets is that a website/page can be comprised of a number of applications that are developed individually. They are then fit together on a page by a portal much like a jig-saw puzzle. This allows functionality to be created independently and slotted together at a later date. This has many obvious benefits. However. I ...

What are the best resources for learning the Java Portlet Specification (JSR-168)?

I've been looking online for the last day or so but haven't managed to see anything that clearly explains the spec. The application I'm trying to learn is based on BEA Weblogic Portal Server. I'm primarily looking for links but a good book would also be helpful. ...

Accessing Liferay web content from inside a portlet?

I have a Struts portlet being used in a Liferay Portal environment. I have been localizing my resource strings using standard resource files so far. I can access the message bundle from my portlet using the <bean:message> tag, and it works great. So for example, in a form I might have the following label defined in my JSP file. ... <lab...

How to show Java portlets in Sharepoint

Does someone know/have experience in showing Java web application generated UI in Sharepoint? We have a Java web application and are evaluating the possibilities to embed Java-generated web UI into Sharepoint. I don't think Sharepoint supports Java portlets, but it might support consuming WSRP? ...

GWT and JSR-168/286 portlet namespace?

We are developing a set of portlets for Liferay. Currently we use JSPs, so we are able to use the tag for the DIV and element IDs so that they are unique on the page, even if multiple instances of the same portlet appear on the page; for example: <div id='<portlet:namespace/>div'> <form> Enter your name here: <input type='text...

Liferay - Struts2 Portlet sample

Hi, I am working with struts2 portlet sample and deployed in liferay portel using liferay server. It is working fine. But now I am trying to validate my form even that working perfectly for first time. But after first attempt when form is submitted with desired values it is not proceedin further and not recogonizing the desired action t...

How can I set WindowState in Struts bridge based portlet links?

I am developing a JSR-286 compliant portlet based on struts 1.2.9 (for historical reasons we want to reuse a lot existing code) using the struts portlet bridge. I want some links to change the WindowState, but the FormTag and LinkTag provided by the portal bridge don't have an easy way to set the WindowState. I'm happy to extend these tw...

How to save portlet positions

Hello, I will be using jQuery's functionality to create portlet widgets for my web application suit. I haven't started as of yet, but will do soon, so this is the planning Now, currently, the page loads, and the widgets load into their default positions. A user can move them around, change their settings, whatever. Now, my problem is t...

JSR168 Portlet Strange Page Expiring Problem

I'm having a strange problem and no luck debugging. I was tasked with writing a JSR168 compliant portlet to search a database. When you open the portlet, you're given 6 search boxes for different criteria to search several thousand records. Once you press search, it brings up another page (it keeps the first page and uses <jsp: include>...

How to stay in same page when executing a Server request in a portlet

Hi, I am calling a webpage from a portlet. The webpage is a form for user to enter data and has a button which submits the user data into Database. But the Button also redirects the portlet site to the webpage through the proxy Gateway. How to stay in the same portlet page while having the Form data submitted to the database? ...

Pros and cons of Java Portlets?

I have a project in which my client is asking me to use portlets 1.0 spec and Websphere Portal Server 6.0. I haven't worked with portlets before but what I've heard of them always have been bad critiques. What are the reasons besides the obvious of using them? If not reasons, what arguments could I use to avoid them? ...