I'm deploying the most basic Portlet possible to Liferay:
public class FirstPortlet extends GenericPortlet
{
@RenderMode(name="VIEW")
public void welcomeWelcome(RenderRequest request,
RenderResponse response) throws
PortletException, IOException
{
PrintWriter out = response.getWriter...
Hello, sorry for my english, here is my question:
I need to render a new instance of a portlet from the generation of a event in another portlet (JSR-286):
I mean, when I catch the event in the method:
@ProcessEvent(qname="{http://liferay.com/events}ipc.pitch")
public void catchBall(EventRequest request, EventResponse response) {
...
Hello, all.
I need to migrate data from a Plone-based portal to Liferay. Has anyone some idea on how to do it?
Anyway, I am trying to retrieve data from Data.fs and store it in a representation easier to work, such as JSON. To do it, I need to know which objects I should get from Plone's Data.fs. I already got the Products.CMFPlone.Por...
I have a Liferay portlet param "cmd" in my JSP page, which is initialized to a value "update". I need this value to be get changed to "delete", when a user clicks on the delete button of the form. How I can go about it?
<liferay-portlet:actionURL varImpl="edit_survey_form_action">
<portlet:param name="cmd" value="update" />
<input...
Hi,
How to include security roles in grails portlets for liferay ?
After deploying war in tomcat i added manually these lines for roles
liferay-portlet.xml :
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
portlet.xml :
<security-role-ref>
...
Hi there,
I need to listen for user log in and log out events in Liferay. From what little I've been able to find, it seems that using Liferay hooks would be the way to accomplish this. Unfortunately I haven't been able to find any information other that at the following link:
http://www.liferay.com/web/raymond.auge/blog/-/blogs/portal...
Hi i'm trying to build Liferay from source, i've downloaded liferay-portal-src-5.2.3.zip but when i go in and press "ant start" i got 3 errors:
SampleSQLBuilder.java:139: cannot find symbol > _counter = new SimpleCounter(counterOffset);
EditServerAction.java:401: cannot find symbol > Log4JUtil.setLevel(loggerName, priority);
EditUserPo...
I had Solr 1.2 up and running at port 8983 and using liferay 5.1.1 the question is how to configure solr to search at liferay JournalArticle table I've already installed solr-web plugin for liferay but it throws this exception
[SolrIndexSearcherImpl:79] Error while sending request to Solr
java.lang.ClassCastException: com.liferay.portal...
Hi,
How to get portlet preferences in grails for liferay .??
I used :
import javax.portlet.*
def renderEdit = {
PortletPreferences pref = RenderRequest.getPreferences()
println pref
['mykey':'myvalue']
}
but getting issue :
No signature of method: static javax.portlet.RenderRequest.getPreferences() is applicable...
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 sp...
I am having a hard time trying to find documentation at achieving IPC using Coldfusion 9 portlets under JBOSS. Does anyone have any good references I can take a look at? Or maybe some example code that I can go off of?
So far I've been successful in getting my portlets working under Liferay (JBOSS), form submission, different views (ed...
Hello,
I try to deploy a simple spring portlet in ext (I can't use Plugins SDK...) on Liferay 5.2.3
My portlet:
ext-impl/src:
package: com.ext.portlet.springmvc
HelloWorldController.java
[code]
package com.ext.portlet.springmvc;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServl...
As the title says - I need to change css-class-wrapper parameter at runtime, preferably in action class. I've found that Portlet interface has setCssClassWrapper method that could probably do what I want, but I can't seem to find any easy way to access current portlet object from my code. Could anyone please give me a hand with what I wa...
Hello,
I'm using Liferay 5.2 portal. I have 2 Web Proxy portlet in my portal. Web Proxy portlet 1 contains navigation items & Web Proxy portlet 2 contains content. When user click an item in portlet 1 then the content in portlet 2 will change, it also mean that the url for portlet 2 changes.
How can I do that? Or is there any other way...
I've set up a Liferay community, along with a number of pages each defining there own set of portlets, themes and layouts. I want to be able to create links between these pages. For example given that I am at the top level page (lets call this 'home'), I want to link to another page (for example 'blog') from within one of my portlets.
I...
How can I get the IP of the Client (request) in a JSR168 Portlet?
I'm on Liferay 5.2.3
I can get the IP with Liferay internal functionality:
String ip = com.liferay.portal.util.PortalUtil.getHttpServletRequest(renderRequest).getRemoteAddr();
Is there any portal neutral way to do this?
...
Hi, I am working on a project involving Liferay Portal and I was hoping to get some input on how to properly utilize community and organizations in the site structure. I have so far been frustrated with the lack of documentation on this subject, and Liferay's internal forum seems to be all but dead. Can someone point me in the right dire...
How can I pass a variable from JSF managed bean to JSP page.
PS: I'm in portal context (liferay).
I tried this:
in Managed Bean:
HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
request.setAttribute("var", "someTxt");
in JSP:
<%
String var = (String)reques...
I need to customise the deployment of my liferay portlet such that the GWT nocache.js files don't get a 'Expires' HTTP header set.
My war file looks like this:
view.jsp
com.foobar.MyEntryPoint/com.foobar.MyEntryPoint.nocache.js
com.foobar.MyEntryPoint/12312312313213123123123.cache.html
WEB-INF/web.xml
WEB-INF/portlet.xml
WEB-INF/lifer...
Hi! I am trying to develop a portlet in Liferay that operates on a Bonita workflow, but I keep getting the exception in the title. I am not particularly familiar with the Java world, so I have no idea what to bang my head against :)
...