FAQ Database Discussion Community


How to pass values from JSP to Servlet without performing event?

java,jsp,servlets,liferay
I have crated a portlet, Where I am doing my business logic in servlet. But I am getting the liferay login user details in the jsp page. So Now I need to pass the user details while hitting the servlet. This is my JSP code, <% String fullname= user.getFullName(); out.println("Full...

How to pass data from page to Portlet class through AJAX call?

ajax,jsp,liferay,portlet
I'm trying to pass a value in an AJAX 'GET' request to my Portlet class, but I can't quite figure out a way to access such variable's value in the class. My AJAX code is: function loadXMLDoc() { var nocache = new Date().getTime(); var xmlhttp=new XMLHttpRequest(); var url = "${mURL}";...

Lifefay freemarker ADT: methods unavailable?

java,liferay,liferay-6,freemarker
I'm trying to work on some ADT for asset publisher (Documents and Media type), but I often have a message telling me that : Expression assetRenderer.getDataRepositoryId is undefined or Expression assetRenderer.getFileEntryId is undefined I found some threads where people said that we must add velocity.engine.restricted.classes= velocity.engine.restricted.variables= freemarker.engine.restricted.classes= freemarker.engine.restricted.variables= in portal-ext.properties...

Mocking static Liferay method

java,unit-testing,liferay,mockito,powermock
I'm trying to mock the PortalUtil.getPortal() method like so PowerMock.mockStatic(PortalUtil.class); Portal mockPortal = Mockito.mock(Portal.class); Mockito.when(PortalUtil.getPortal()).thenReturn(mockPortal); I'm getting the below error org.mockito.exceptions.misusing.MissingMethodInvocationException: when() requires an argument which has to be 'a method call on a mock'. For example: when(mock.getArticles()).thenReturn(articles); Also, this error might show up because: 1. you stub either of:...

DLFileEntry size in the memory

java,memory,liferay,portlet
Can someone tell me what is the size of a DLFileEntry record in the memory? I'm holding a List of DLFileEntries and I want to be just sure that my portlet won't have a memory issue after deploying it on a server, operating with a large number of records. Or...

How to export a specific web content in liferay?

liferay
I am using Liferay Portal 6.2CE GA3 tomcat bundle. I have created web content and I want to export the specific web content. But there is no option to select the specific web content. I have the only option to select on date of creation range. Can any one know...

How to upload file in relative directory

java,liferay
I have made a application where we can upload any file which will save in our local given directory. I want to modify it, i want to add a drop down (with multiple option i.e floor, store, section) for department. i.e if we want to upload a file in 'Store'...

Portlet event send array of objects

arrays,events,liferay,portlet
We have multiple projects with multiple portlets and need to send an array of objects between them. Our situation: One of the porlets is like a "Master-portlet", it will be responsible for all the REST-calls and consume json-data and parse it to Java-Objects. All the other portlets will receive an...

Data migration from liferay portal to websphere portal

migration,liferay,portlet,websphere-portal,ibm-connections
i need to migrate the content of the list below from liferay Portal to WebSphere Portal. and we will use IBM Connection for the portlets. a. Calendar. b. Discussion Boards/Blogs/Forums can anyone give me an API that can be use for migrating the data? I have an options here but...

liferay 6: reach main site from breadcrumb

liferay,liferay-6
We have liferay 6.1-ga2 serving a main site and several subsites. In the protal settings we set /home as standard homepage, logout-page and root-url. Now if we navigate to a subpage /web/projectFoo and then want to return the main-site by clicking the link in the breadcrumb or manually typing http://example.com/...

Change database in Liferay with losing any data

liferay,hook,liferay-6,portlet,liferay-theme
As of today, I am developing the liferay portal enhancements with default hsql database. I have implemented many features and created multiple sites and site templates with different roles and user. 1) Now I want to change the database from hsql database to PostgreSQL. Now how can I change the...

How to update the portlet view with a web page?

java,liferay,liferay-6,portlet
In my application, I need to access the remote applications (The application which is running on other tomcat instance) dynamically in my portlet. So I have created the portlet in view and edit mode so that I am able see the "preferences" option in portlet setting options. my preference page...

How to host a newportal instance in liferay

liferay,liferay-6
I have created a new portal instance in liferay. I want to host it in my local Ubuntu machine. What i have done is created a WEB ID as newportal.com Virtual host as www.newportal.com and the mail domain as newportal.com thanks...

liferay portlet: access forbidden after time period for guest user

jsp,liferay,portlet
I created a portlet on Liferay 6.1, JBoss 7 for guests. It needs to work for the user even if he hasn't made an action for a long period of time. Actual if I do something in my portlet and wait for about 10 minutes and then do something again...

Liferay homepage is not found after starting the server in Eclipse

eclipse,tomcat,liferay,tomcat7,liferay-6
I have set up a Liferay Tomcat Server in Eclipse. After the server starts and I go to localhost:8181 (where I configured the server), the page is empty. Also, if I right click the server in Eclipse and select Open Liferay Portal Home, a 404 Page Not Found is displayed....

Set setcontenttype in action mapping?

liferay,liferay-6,portlet,content-type
Can anyone tell me how i can set content type to "UTF-8" using action response like resource Response? I dont see any setContentType for actionResponse. In Resource Mapping we can do it like resourceResponse.setContentType("text/html; charset=UTF-8"); I also tried to encode the string using . messageToCust=new String (messageToCust.getBytes ("ISO-8859-1"), "UTF-8"); Is...

How to add a custom section to the User Edit Screen in Liferay?

liferay,liferay-6,liferay-aui,liferay-ide
I want to customize the User-Edit page in Liferay 6.2. First of all I wanted to add a new section to the bar on the right of the user edit screen (http://i.imgur.com/dshV5cJ.png). I have realized this with properties like users.form.add.main=customportlet When i click on the new created section it opens...

liferay-ui input date clear value

java,html,liferay,liferay-aui
How can I achieve a clear starting value for liferay-ui:input-date ? When I try to use this: <liferay-ui:input-date monthParam="month" monthValue="0" monthNullable="<%= true %>" dayParam="day" dayValue="0" dayNullable="<%= true %>" yearParam="year" yearValue="0" yearNullable="<%= true %>" /> I get the following exception: Attribute monthNullable invalid for tag input-date according to TLD which I...

Liferay variable $user vs $realuser

java,liferay,velocity
There are number of variables available in liferay for custom TPL files.I have found that on below link of liferay. http://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/variables-available-to-layout-a-template-liferay-portal-6-2-dev-guide-09-en But I have confusion on below variables.I am not able understand differrent between $user and $realuser. can anybody help on this? Thank you....

Documents and Media file view link

java,liferay,portlet
Is there a way to obtain an URL to open document in Documents and media portlet? Not to directly download it, but to open a document view. E.g. I have got a DLFileEntry object in my potrlet, after clicking a view href link, it opens a view of this entry...

Keep liferay-ui:search-container while paging

liferay,liferay-6.2
I have a <liferay-ui:search-container> displaying my results. I enabled a rowChecker, so that each row becomes selectable by a check box. It is placed in a form; in this way users can select more rows, then click on my "submit" button and the action is able to get ids of...

Could not find or load main class com.liferay.portal.tools.SassToCssBuilder

java,xml,eclipse,liferay,liferay-6
I'm using Liferay 6.2 CE. When I'm deploying my portlet, this error message is shown. Buildfile: /home/matej/liferay-plugins-sdk-6.2/portlets/RegistrationForm-portlet/build.xml war: [java] Error: Could not find or load main class com.liferay.portal.tools.SassToCssBuilder BUILD FAILED /home/matej/liferay-plugins-sdk-6.2/build-common.xml:2468: The following error occurred while executing this line: /home/matej/liferay-plugins-sdk-6.2/build-common.xml:2473: The following error occurred while executing this line:...

Liferay portlet deploy timestamp

liferay,portlet
I need to include some javascripts in jsp pages: <script type="text/javascript" src="<%=request.getContextPath()%>/newsletter/js/newsletter.js"></script> When I deploy a new portlet version and I change this js file, some users see the old version of this file. I saw that Liferay adds last deploy timestamp to javascripts (...js?t=14573725543), and I can do it...

Saving preferences in a embedded portlet added with liferay-portlet:runtime tag

liferay,liferay-6
I created a portlet (parent) that shows as the content of accordion an embedded portlet (also created by me). As context, below the JSP (view mode) of the parent portlet: <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> <%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %> <jsp:useBean id="titulo" class="java.lang.String" scope="request" /> <portlet:defineObjects /> <%! String idPortlet="test_WAR_boxportlet_INSTANCE_fadewsio22a";...

How to delete a portlet in Liferay 6.1 programmatically from code

java,javascript,java-ee,liferay,liferay-6
I'm working on Liferay 6.1 I want to delete a portlet in Liferay 6.1 from my code. What I have done so far is: <a onclick="Liferay.Portlet.close('#p_p_id_28_'); return false;">Remove</a> Above code is working fine. But it is working on the current page only i.e. it can delete the portlet(s) which is...

Manually create Liferay login url

javascript,url,liferay
Is there a way to create a Liferay login url if I know the site name, virtual host, username, etc... I basically want to come up with some javascript that enables third-party sites to create a login box to my site, preferablty to a specific page Just to clarify, I...

Override liferay-ui navigation taglib

java,jsp,liferay,liferay-theme
Problem I'm implementing a css component library within a Liferay theme, adding the css to the custom.css file. I've hit an issue with implementing the changes to the navigation which is currently using a taglib liferay-ui:navigation to generate and style the navigation (using init.jsp and page.jsp in the navigation taglib)....

AJAX Call not working in liferay 6.2.2?

ajax,liferay,hook,liferay-6
I am trying to perform a AJAX Call. But what i get is ResourceURL as undefined when i see the error in chrome. Below is my code. Declaration: <liferay-portlet:resourceURL copyCurrentRenderParameters="<%= false %>" var="mainURL" /> Implementation: xhr2.open("POST", resourceURL , false); But at implmentation i get resourceURL as undefined. In 6.1 it...

How to pass HTTP request to Web-Service

ajax,web-services,liferay,liferay-6,portlet
From my portlet JSP, I am trying to make a Ajax call to web-service. My aim is to pass HTTP request object as a parameter to web-service method. Please suggest.

Register multiple EventHandlers for one portlet

event-handling,liferay,portlet
I would like to register more than one EventHandler in a Portlet in my portlet.xml. Right now it looks like this: When trying to add a second block of init-param i get an error: Than i tryed to add multiple EventHandler in one init-param block, but i get this error:...

Liferay Maven Service Builder Portlet(Developer Studio)

java,maven,liferay,liferay-ide
I am new in Liferay platform. I am trying to implement CRUD in Liferay using portlet. I am using liferay 6.2 and IDE as a developer studio. I am creating project with below values (In Image) in developer studio. When I am creating project in Developer studio I am getting...

Incorrect liferay-plugins dependency

gradle,dependencies,liferay,liferay-6.2
In https://github.com/liferay/liferay-plugins/blob/6.2.x/build-plugins.gradle#L9 following dependency is defined: dependencies { classpath group: "com.liferay.portal", name: "portal-service", version: "7.0.0-SNAPSHOT" } How can a 6.2.x version have a dependency on 7.0.0 version? Is it a bug? When I peek to the history of the file, the dependency has always been there. I am not able...

Element does not allow attribute “maxBytesLocalDisk”

spring,tomcat,caching,liferay,ehcache
I want to use data caching with ehcache in my liferay portlet. I use Liferay 6.2 community edition bundled with Tomcat 7.0.42. dependecies in pom.xml <properties> <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <spring.version>4.1.0.RELEASE</spring.version> <spring.data.version>1.7.1.RELEASE</spring.data.version> <log4j.version>1.2.17</log4j.version>...

How to check for real liferay user after altering the request through Burpsuite

cookies,request,liferay
I'm doing some vulnerability check on Liferay by using Burpsuite. Through burpsuite, i changed the Get: request and the cookie Cookie: JSESSIONID=8415D05C1E66F72CE8803607B6FEC26B.node1; COOKIE_SUPPORT=true; USER_UUID="2n3duSU0cr8TgknmHzm8ghmRUS2LVJfx6zmuvGFspuY="; GUEST_LANGUAGE_ID=en_US; LFR_SESSION_STATE_2983586=1431672874448; COMPANY_ID=10154; ID=79307664464f436b414f657133626843444f577a65773d3d; from one user to another. The page then loads as if the user is the other user which i copied the request...

How to render a web page in a portlet view

liferay,liferay-6,portlet,jsrender,jsr286
Can any one please guide me that how can we render the custom web page view in the portlet. i.e, I have a input text box in my where user can enter the target URL and on click of the submit button the portlet content should display the target URL...

liferay like restfull api mobile

mobile,liferay
I have a app and I need develop a restfull api to be used for this app. Is liferay a valid option to develop this (using the service builder and persistence layer of liferay) to expose my service api to be used for the app? I have in mind the...

Liferay 6.2 Hook deployment strange behaviour

liferay,hook,liferay-6
I have deployed a document library hook which includes many jsp files under custom_jsps. Recently, I wanted to change folder_action.jsp, so I changed it and deployed it normally in document library portlet. As it was expected, a folder_action.portal.jsp was created containing the original file. However, I've noticed something strange. After...

can't handle portlet action phase

controller,liferay,portlet,spring-portlet-mvc
I have a basic Liferay portlet and use Spring MVC. I have only one controller for VIEW mode of portlet and only one form. When I submit the form, action phase is not handled. GraphViewController.java package graphui; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import...

jsp losing attribute passed from the backend

java,html,jsp,liferay,portlet
I've got a problem in my project. This is a part of my code, which I think is causing the problem. @Override public void dLMSreceiveInput(ActionRequest actionRequest, ActionResponse actionResponse) throws ParseException { dynamicLogic = actionRequest.getParameter("setlogic"); logic = actionRequest.getParameter("outerlogic"); PortletPreferences prefs = actionRequest.getPreferences(); dLMSSendRender(dLMSCreateQuery(actionRequest), actionResponse, actionRequest); } public void dLMSSendRender(List<DLFileEntry> foundFiles, ActionResponse...

Is there a way to get a deployed war from a running Liferay?

liferay,war,portlet
A version of a portlet I'm working on is already deployed to liferay. Is there any way to get that originally deployed war from a running liferay instance? This is so I could hot-deploy my version and shortly deploy the old version. The original was deployed by Jenkins. Liferay 6.1...

Liferay WYSIWYG editor copy from Word

liferay,wysiwyg,liferay-6.2
I saw Liferay's WYSIWYG editor has option to copy content from Word. But I notice that the formating (especially headings) don't match and the images are not copied. Is it a known issue? Does Liferay support integration with any WYSIWYG editor in which I can copy content from word as...

I am working on a MVC Portlet and the document i am saving is not going to db

liferay,liferay-6
Here is my Action Class, where I have to save any document to database but its not working and getting error in console that NoSuchMethodException (javax.portlet.ActionRequest, javax.portlet.ActionResponse) package com.test.docupload; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import javax.portlet.ResourceRequest; import javax.portlet.ResourceResponse; import javax.portlet.PortletException; import com.liferay.counter.service.CounterLocalServiceUtil; import...

Creating a Velocity template for Dynamic Data List (Liferay 6.2)

templates,liferay,velocity,freemarker,datalist
I'm currently working with liferay 6.2 but i'm having problems to create a Display Template for a Dynamic data list. I'm trying to follow this guide: https://dev.liferay.com/discover/portal/-/knowledge_base/6-2/make-it-pretty-creating-custom-displays#display-templates But the FreeMarker example doesn't work. I'm trying to create a template in Velocity (since i have more knoledge than FreeMarker): My code...

Liferay Migrating User from legacy database & LDAP

liferay,liferay-6.2
I am migrating data into Liferay from legacy database for which I have written script to programmatically push data into Liferay's user as I see fit. Now authentication happens with LDAP and some basic details of user are also in LDAP which is supposed to be synced. Will it cause...

Drupal Content Types in Liferay

drupal,liferay
What is the equivalent concept of drupal content type in liferay. I want to migrate some drupal content types in my Liferay site...

Drupal to Liferay Migration

drupal,migration,liferay
I want to migrate my existing Drupal sitea (about 600 pages) to Liferay. What will be the bestway? Do I perform DB to DB Migration? If yes, how it can be done? Is there any solution provider who is giving this service?...

Liferay's messages - extend duration

liferay,liferay-6
is it possible to extend time when Liferay's Sesssion Messages (and Session Errors) are displayed on the page ? Normally it lasts like 8 seconds and it's not enough for me. I use Liferay 6.1.1....

how to bypass the necessity of having to have email address firstname and lastname in liferay to import authenticating users

ldap,liferay
My application uses liferay to connect to LDAP server and import authenticating users. But many of the user records in the ldap schema doesn't have email id. This seems to be preventing me from importing these users as liferay requires email id, among other things, inorder to successfully import new...

Verify in another portlet-A whether the portlet-B is deployed or not

liferay,liferay-6,portlet
Requirement JSP code in portlet-A's JSP includes another portlet as: <liferay-portlet:runtime portletName="portlet-B_WAR_portletbportlet" /> If portlet-B is undeployed it shows a message - portlet-B is unavailable. We need to check when portlet-B is unavailable and do some other functionality and show some other stuff Question Is it possible to check in...

Custom statuses in Liferay's workflows

liferay
I want to make an workflow that has other statuses than the Single Approver workflow, other than "Update", "Approved" etc. Is it possible? What I have found on Internet is how to create custom portlets and I am not sure I have to go so far. I understand that these...

Liferay Velocity Templates & Structures. Get Children of Children?

templates,liferay,velocity
I'm working with Structures and Templates within Liferay 6.1. When trying to get children of rows it appears that the only way to access the information using a loop is with code similar to this: #foreach ($this in $example.getSiblings()) <h2>$this.getData()</h2> <p>$this.getChildren().get(0).getData()</p> #end Does anyone know how it would be possible...

Ajax sends null data into controller

ajax,spring-mvc,liferay,portlet,spring-portlet-mvc
I have a liferay portlet and use Spring MVC. I want to use Ajax to send a basic object into controller. The problem is that controller receives only null object. index.jsp <[email protected] contentType="text/html" pageEncoding="UTF-8"%> <%@ page import="graphui.GraphUIConstants" %> <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">...

Liferay Table Column Description

liferay,liferay-6
I am trying to understand the field level description for each table in life ray which are related to user management. I did not understand the purpose of some columns in the following tables. USER_: GRACELOGINCOUNT FACEBOOKID PORTRAITID GROUP_: PARENTGROUPID LIVEGROUPID TREEPATH TYPE_ TYPESETTINGS REMOTESTAGINGGROUPCOUNT ADDRESS: TYPEID PRIMARY_ PHONE: TYPEID...

Liferay Portlets Best Practices and Coding Guidelines

liferay,portlet,guidelines
We are a groupe of studends which have gotten the task to develope a bunch of Portlets for Liferay. The Liferay Portlets have to have a specific code quality. And since non of our groupe has experience, it would be nice if some experts could share there knowlage or post...

Can't get the liferay login user details in portlet

liferay,liferay-6,portlet,liferay-theme
I have one proxy portlet and one Generic portlet. Here I am sending Post data from proxy portlet to generic portlet. While sending the data I use post method and sending to the view.jsp page. In view.jsp I am able to get the form data through input stream. Now the...

How can I change the zIndex attribute of aui-datepicker in Liferay Portlet 6.2

datepicker,liferay,z-index,liferay-aui,alloy-ui
I have discoveder one problem with date field in portlet in LF 6.2. The problem is that after clicking on the input field, the datepicker is displaying, but with zIndex=0, that means it is under the portlet. If I change on firebug that parameter to 1, everything is OK. I...

Liferay 6.2 Documents migration from filesystem to DB

database,liferay,liferay-6,data-migration
I am going to move from storing document files in filesystem to Database. I would like to know the following before proceeding. Migration of existing documents in filesystem, is executed through control panel by selecting the DBStore hook. Is this right? Do I need to perform some other actions? Regarding...

customize error message for required field with in liferay

validation,liferay,liferay-6,liferay-aui
I'm trying to validate a required Select option with aui. for input fields the code below works without any issue : <aui:input name="name" value="${name}" label="name"> <aui:validator name="required" errorMessage="your-message-here"></aui:validator> </aui:input> But with Select option field, I cannot customise the required error message : for example : <aui:select required="true" label="field.label" id="id" name="name"...

How to upgrade liferay services from 6.0 archetype to 6.2?

liferay,maven-3,best-fit
I am currently working on liferay upgradation from 6.0 to 6.2.2 GA3. I tried upgrading the services portlet. The services portlet of 6.0 version is built using mvn services-portlet-archetype whereas for 6.2 version the archetype is liferay-servicebuilder-archetype. The difference is that in 6.2 liferay-servicebuilder-archetype there are two modules: Module 1:...

To Send Email to Multiple Recipients in Liferay [closed]

email,liferay
I wanted to know how to send email to multiple recipients n liferay 6.2 when a new content has been added.

Custom Taglib in liferay using Spring MVC & Maven?

java,spring,maven,liferay,liferay-6
How do i proceed with creating a custom Taglib in a liferay.For now i have a portlet created in place. My obvious questions are: Do i need to create a hook plugin and override a jsp for acheiving this target? Do i need to download any jars? Which all files...

JSF how to do a GET from bean method?

jsf,liferay
I want to use a h:commandLink to post to my backing bean method. After that I want to open another page within the site from the bean method. How to do that?

Users in Guest role see default theme instead custom one for given layouts

liferay,liferay-6,liferay-theme
Users in Guest role see default theme instead custom one for pages which inherit from defined custom theme. This seems to be very strange problem. Even though layouts have specified to inherit theme from parent theme: Use the same look and feel of the Public Pages. Guests see them as...

Why the data of my datatable doesn't apper when I use filter and then reload the page?

spring,jsf-2,primefaces,datatable,liferay
I have a datatable with data and filter The filter works perfecly, when I white some that doenst exists, the datable is empty, but when I reload the page the data doenest show in the datatable This is my code XHTML <p:tab title="#{caseList['caseManagement.assignedToMe']}" id="myCaseTab"> <p:dataTable var="myCase" id="myCases" value="#{caseManagement.myWork}" widgetVar="myCaseTable" row="5"...

Form submit portlet with Spring MVC

java,jsp,spring-mvc,liferay,portlet
I'm trying to achieve a Liferay portlet of submit form using spring MVC. The model: package com.model; public class Person { String firstName; String middleName; public String getFirstName() { return this.firstName; } public String getMiddleName() { return this.middleName; } public void setFirstName(String firstName) { this.firstName=firstName; } public void setMiddleName(String middleName)...

Text internationalization in Javascript using liferay-ui:message

javascript,internationalization,liferay
How can I do internationalization for this : alert('<liferay-ui:message key="please-choose-file-type" />'); Notice that I want to internationalize the message inside Alert using Liferay:ui:message tag. Thanks....

How to override a Language.properties from a theme?

liferay,liferay-theme
I added new configuration settings to my Liferay theme inside the file liferay-look-and-feel.xml <setting configurable="true" key="show-navigation" type="checkbox" value="true" /> In the control panel I can see the setting with show-navigation label. I want to translate it to Show the Main Navigation using Language.properties inside the theme. Then to accomplish this...

How to call Generic Portlet methods from servlet?

java,servlets,liferay,liferay-6,portlet
I have created a portlet and able all my business logic is performing in a servlet. I need to get the liferay login user details in the servlet. SO I have created a class which will extend the GenericPortlet. Now My question is how can I call that class I...

How to create a new(original) struts path?

liferay,liferay-6,struts-1
I have tried overriding existing StrutsPortletAction before with their existing struts path with success. However, I can't seem to do the same if I were to try creating my own struts action path. <hook> <custom-jsp-dir>/custom_jsps</custom-jsp-dir> <struts-action> <struts-action-path>/portal/set_viewers/</struts-action-path> <struts-action-impl>com.mine.blogs.hook.BlogEntryViewerStrutsPortletAction</struts-action-impl> </struts-action> </hook> The eclispe IDE gives me this error...

Liferay Service Builder SaxException

liferay,liferay-service-builder
I get an error when I build my service: org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error: URI=null Line=1258: The content of elements must consist of well-formed character data or markup. org.xml.sax.SAXException: Fatal Error: URI=null Line=1258: The content of elements must consist of well-formed character data or markup. at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:723) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source) I...

Liferay database table work flow?

liferay,liferay-6
I am new to Liferay. Now I need to create the flow chart which has the Liferay table work flow in following scenarios, 1) What are the list of table will reflect/update if we create the site admin? 2) What are the list of table will reflect/update if we create...

Liferay Inter Portlet Communication in JSF 2.0

jsf,jsf-2,liferay,communication,portlet
I'm developing liferay jsf portlet application and using liferay plugin sdk 6.2.0 and primefaces. I have two portlets in same portlet plugin project. I can do IPC with public render parameters but they should be same portal page. I tried to event mechanism but I couldn't succeed. Receiver event didn't...

Customizing liferay Calendar portlet

liferay,liferay-6,liferay-ide
I'm trying to customize Calendar portlet using this below instructions. https://www.liferay.com/it/documentation/liferay-portal/6.2/development/-/ai/creating-plugins-to-extend-plugins-liferay-portal-6-2-dev-guide-03-en Its basically creating Plugins to extend plugins. In order to achieve above, I need "Calendar-portlet.war" . I don't find any war file for calendar portlet for my version. So i decided to build myself. Then i downloaded Portal plugins...

how do i send file and data using alloy ui ajax call in liferay

liferay,alloy-ui
I have following code snippet for ALLOY UI Script : AUI().use('aui-base','aui-io-request', function(A){ A.io.request('<%=submitJobApplicationByAjax%>',{ dataType: 'json', method: 'POST', data:{ "appliedPosition": A.one("#<portlet:namespace/>appliedPosition").val(), "fullName" : A.one("#<portlet:namespace/>fullName").val(), }, on: { success: function() { } } }); }); And following form : <input class="span12" type="text" name="<portlet:namespace/>fullName" id="<portlet:namespace/>fullName"...

Does'nt Liferay work at different ports?

liferay,server,portal
I have developed a portal page using Liferay and the port number is 8080. I wanted to test SSO, I decided not to try with the existing one as there might be some problems and I might end up crashing the whole thing. As a result I downloaded a new...

JSF + Liferay: Cannot send parameters from a bean to another

jsf,liferay,portlet
I've tried all methods, nothing works, in the destination @PostConstruct the parameter is null. I am sending a redirect from BeanA to a page (backed by BeanB) and trying to extract the parameter from BeanB. The requirement is to not add the parameters to the URL. I tried all methods:...

Identify that the logged in user is an administrator or not using velocity

liferay,liferay-6,liferay-theme
I would like to identify that the logged in user is an administrator or not using velocity. The goal is to show the dockbar to the administrator user(s) only. I have tried following code, but is not working for me: #if ($is_signed_in && $permissionChecker.isGroupAdmin($group_id)) #dockbar() #end Please help me!!!...

Service builder doesn't delete table in DB

liferay,liferay-6,liferay-service-builder
Hi all, I'm using LR 6.1. I created a new entity Called " Recommendation" in service.xml then a run BuildServices with Ant to generate the service builder Files. Now I want to delete the Entity. So I Deleted if from service.xml, but nothing happens in Data base and the other...

Liferay workflow Flow(ie:Kaleo WorkFlow)

liferay
I have a requirement.We have a form where we create users in liferay and it should go through approval process(ie:single approver).If the omni admin fills that form then the user must not go through approval process and when the same form is accessed by any other user it must go...

How to add preference option to the liferay portlet

liferay,liferay-6,portlet,portal
I want to create a portlet where the portlet allow access to the remote application. That is the content of the portlet should be dynamic so for the same reason I want to add one option "Preferences" in the portlet (Where the look and feel and configuration options exists). In...

In liferay market place, I am unable to submit the project

liferay,liferay-6
In Liferay market place i am stuck at the place "Upload Liferay Plugin Packages " When ever i am trying to upload a war file Please help me to short it out :)...

Difference between Liferay Mobile SDK and Liferay Screens

mobile,liferay,liferay-6
Can someone tell me the difference between Liferay Mobile SDK and Liferay Screens? Thanks a lot....

How to create service builder for liferay plugin project with maven

liferay,liferay-ide,liferay-service-builder
I have Already create Liferay Plugin project. and maven install also over. it gives ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] --------------------------------------------------------------------- [INFO] Total time: 1:29.773s [INFO] Finished at: Wed Jun 17 15:46:10 IST 2015 [INFO] Final Memory: 34M/151M [INFO] -----------------------------. But unable to add service builder. When i try to add...

Liferay migrating data into Liferay table from some legacy database

liferay,liferay-6.2
I am looking to migrate data from one of the legacy database to one of Liferay tables. I can write the migration script, but I was wondering if there will be some issue with "Counter" service of liferay. For example I have legacy custom user table. I need to move...

Deploying a SpringMVC project on Liferay . Error: ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:220]

java,spring,maven,liferay
LOG: 09:56:01,860 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:204] Processing HelloWorld-portlet-7.0.0.1.war 09:56:01,935 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:79] Copying portlets for C:\Users\anju\Downloads\liferay - server\liferay-portal-6.2-ce-ga3\deploy\HelloWorld-portlet-7.0.0.1.war 09:56:01,965 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:863] Deploying HelloWorld-portlet-7.0.0.1.war...

Where can we get the liferay Iframe portlet source code?

iframe,liferay,liferay-6,portlet,spring-portlet-mvc
I need to a portlet to access the remote applications. So I need the Iframe type portlet. I have tested the I frame on liferay portal. I need the source code of the Iframe portlet, so that I need to customize it as required and ddeploy the same on to...

Auto deploy Liferay portlets in Netbeans

tomcat,netbeans,liferay,liferay-6,portlet
how do you automatically deploy Liferay portlets in Netbeans? Every time I build a project, have to copy .war file to Tomcat deploy directory in Liferay. Is it possible to deploy .war file automatically, when project is built?

Customize CreateAccountAction in Liferay Portal

liferay,liferay-ide,liferay-hook
I'm trying to add "User Group" Selection field while creating a user (Self User Registration form - create_account.jsp). Here Custom fields is not helpful because Usergroup is already exists in db. I want to insert into existing Users_UserGroups table. I'm using below hook: But User is not added in the...

Customizing My Sites portlet in Liferay

liferay
I want to customize My Sites portlet (which is out of box portlet) in liferay using ext. How do I do this? How do I get the source code for the my sites portlet?

How can I configure AOP in Liferay Service Builder?

liferay,aop
I want to to intercept a method in Service Builder, for example: XXXLocalService.update(). But I don't know the correct way to do this. I have done some research but I haven't found a clear way to do this. Any help will be greatly appreciated....

Liferay Velocity Structure and Template. Repeatable Fields

templates,liferay,structure,velocity
I am using a structure a little like this with levelOne and levelTwo both being repeatable. levelOne levelTwo levelThree When using a foreach loop to display the data I can only seem to find the first instance of levelTwo and levelThree. I have tried an absolute ton of methods to...

How manage styles in Vaadin portlet in Liferay

css3,liferay,vaadin,portlet
I have a Portlet, where is used Valo theme. Most graphical components are displayed properly, but TextField not. It should have rounded border radius and height should be about 35px. It has normally about 15px and the field is angular. When I narrow width of browser window to about 200px...

Get list of users in liferay

liferay
I want to display users list on liferay. and I am having problem with it. Here is my action class. public void userList(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { // Todo Logic for user code try { int countUser = UserLocalServiceUtil.getUsersCount(); log.info("User Present In DB" + countUser); List < User...

Issue while running the service builder on life ray

spring,hibernate,liferay,liferay-6,liferay-service-builder
With reference to the following tutorial, https://www.liferay.com/documentation/liferay-portal/6.2/development/-/ai/generating-your-service-layer-liferay-portal-6-2-dev-guide-04-en I have created and deployed the service builder. Now view page is showing as expected and on click of Add location button the new form is showing up with respective fields, There I am entering some data and trying to save the data....

How to ignore Liferay user removed from LDAP errors?

ldap,log4j,liferay,liferay-6,openldap
I have a Liferay 6.1 instance that is connected to LDAP. New users get imported nicely, but when I remove a user from the LDAP directory, Liferay starts throwing exceptions when it tries to sync users from LDAP. These seem to be safe to ignore, but they produce several megabytes...

Liferay theme template processing error

templates,macros,liferay
I'm learning how to develop a custom template for my portal. When I'm trying to use my template the following error is thrown: 10:10:44,752 ERROR [http-bio-80-exec-163][runtime:96] Template processing error: "Macro language_format has no such argument: objects" Macro language_format has no such argument: objects The problematic instruction: ---------- ==> macro language_format...

commandButton action method not invoked in Liferay

jsf,liferay,portlet
I've the below portlet view.xhtml: <?xml version="1.0"?> <f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <h:body> <h:form> <h:commandButton value="TESTButton" action="#{navigationViewBean.submit}" /> <h:outputText value="TESTGetter: #{navigationViewBean.testField}" /> </h:form>...

Include ftl file in ext plugin

maven,liferay,liferay-6
I have ext-plugin and I would like to override this file: portal-impl\src\com\liferay\portlet\dynamicdatamapping\dependencies\ddm\documentlibrary.ftl. After maven build, this file isn't include in my porta-impl-ext.jar. In my portal-impl-ext's pom.xml I have this code: <build> <plugins> <plugin> <groupId>com.liferay.maven.plugins</groupId> <artifactId>liferay-maven-plugin</artifactId> <version>${liferay.maven.plugin.version}</version> <configuration>...

Cons of a liferay cms while website development using Community Edition

content-management-system,liferay
I am new to LIFERAY CMS. i need cons of a liferay cms i.e., difficulties faced while developing and using liferay cms. can you please list cons of liferay cms.

how to show values associate with a custom document in liferay 6.2

liferay,document,liferay-velocity
I created a document type, and I'm using Asset Publisher to display this types of documents I would like view the values that I associated with my custom document, that I created with the document library. What is the way to do this with velocity? I found this java code...