liferay

“Unresolved requirement: Import-Package” for a module not in my build.gradle

我只是一个虾纸丫 提交于 2019-12-02 17:02:08
问题 I want to use Elasticsearch's Client Java class within a Liferay 7 SP4 FP30 module, so I wrote this build.gradle : dependencies { compileOnly group: "com.liferay", name: "com.liferay.portal.search.elasticsearch", version: "2.1.14" compileOnly group: "com.liferay", name: "org.elasticsearch", version: "2.2.0.LIFERAY-PATCHED-1" compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.1.0" compileOnly group: "com.liferay", name: "com.liferay.osgi.util", version: "3.0.0"

ext plugin not working in liferay 6.1.2 jboss7

徘徊边缘 提交于 2019-12-02 15:27:23
问题 I created an ext-plugin for extending Liferay LDAP DefaultPortalToLDAPConverter . I created an ext plugin in eclipse. In the ext-impl/src/main/java/com/liferay/portal/security/ldap/CustomPortalToLDAPConverter i extended DefaultPortalToLDAPConverter and kept only the changed methods in my class. Also I added in ext-spring.xml <bean id="portalToLDAPConverter" class="com.liferay.portal.security.ldap.CustomPortalToLDAPConverter" /> and then deployed the ext. The deployment went well without any

Why am I getting NullPointerException in liferay?

点点圈 提交于 2019-12-02 14:07:57
I am getting a NullPointerException on the following line: originalStrutsPortletAction.processAction( originalStrutsPortletAction, portletConfig, actionRequest, actionResponse); I am printing all the values: System.out.println(originalStrutsPortletAction); System.out.println(portletConfig); System.out.println(actionRequest); System.out.println(actionResponse); Output: com.liferay.portal.struts.StrutsPortletActionAdapter@2f20c4be com.liferay.portlet.PortletConfigImpl@5f4268dd com.liferay.portlet.ActionRequestImpl@1054ae1e com.liferay.portlet.ActionResponseImpl@27733bf2 So why am I getting

How to download documents from liferay from outside application ..using liferay jsonws or any other way

跟風遠走 提交于 2019-12-02 13:04:47
Hi i am using liferay/api/secure/jsonws services to upload documents, getting documents, from a outside application , in the same way i want to download the documents also, i checked my liferay jsonws , there is no method or service which i can use for download , or i don't know about it , please suggest me a way to download documents from outside application , by using jsonws or any other way is also fine. Edit after i got to know how to download document. Hi I tried to download liferay document from outside application by using getURl, but every time for all document i am getting liferay

Download file, filename doesn't work in portlet

谁说胖子不能爱 提交于 2019-12-02 12:52:30
I set filename in the HttpServletResponse header but when I download it has not this filename FileInputStream fis = new FileInputStream(fileDocumento); PortletResponse portletResponse=(PortletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse(); HttpServletResponse res = PortalUtil.getHttpServletResponse(portletResponse); res.setHeader("Content-Disposition", "attachment; filename=schedaObiettivoTAC_.docx"); res.setHeader("Content-Transfer-Encoding", "binary"); res.setContentType("application/vnd.openxmlformats-officedocument.wordprocessingml.document"); res

How can I call the action method inside the MVCPortlet class onclick of the Submit button

女生的网名这么多〃 提交于 2019-12-02 12:45:10
I am using Liferay 6 for development. I have added JQuery support to Liferay this way inside the file liferay-portlet.xml file <header-portlet-javascript>https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js</header-portlet-javascript> <header-portlet-javascript>https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js</header-portlet-javascript> Now I have a form with Username and password as shown below: <form> <div> <input class="default-value" type="text" name="Name" value="Name" /> <input class="default-value" type="text" name="Password" value="Password" /> </div>

Color and other footer's parameters in Liferay

孤街浪徒 提交于 2019-12-02 10:37:18
I need to create footer which will be just like small orange bar, and I need to make it responsive, I mean when I resized my window everything should be ok. How can I do that? <footer id="footer" role="contentinfo"> <p class="powered-by"> #language ("powered-by German") </p> </footer> This is my <footer> tag in portal_normal.vm To make your footer responsive, you can use Liferay supported Twitter Bootstrap classes, aided by your own custom styles controlled through media queries in custom.css of theme: Example: <div id="footer" class="row-fluid"> <div class="span12 text-center"> <p class=

Liferay Portlet Basic MVC Flow and View Selection

[亡魂溺海] 提交于 2019-12-02 10:17:35
问题 I'm trying to develop a basic portlet with LifeRay 6.1. I'm well versed with various MVC implementations, but I find Liferay / java portlets somewhat confusing - especially the execution pipeline. With most MVC frameworks I've worked with the premise is simple request > router > controller > view. The view selection is usually based the controller / action naming convention, a parameter passed in with the request or is manually loaded in the controller action. With LifeRay MVCPortlet it doesn

Liferay - Error while creating first portlet plugin project

自闭症网瘾萝莉.ら 提交于 2019-12-02 10:09:37
I followed the tutorial here to setup Liferay + server + SDK, but I got an error while creating my portlet. It tells me that the portlet gets created, but I still get an error and it doesn't show in my package explorer in Eclipse. I'm working on a Mac with Eclipse. Here the error: org.eclipse.core.runtime.CoreException: Source '/Users/danielstorch/Documents/Develop/workspace/.metadata/.plugins/com.liferay.ide.sdk.core/create/1431263175117' does not exist at com.liferay.ide.project.core.PluginsSDKProjectProvider.doCreateNewProject(PluginsSDKProjectProvider.java:182) at com.liferay.ide.project

“Unresolved requirement: Import-Package” for a module not in my build.gradle

荒凉一梦 提交于 2019-12-02 09:34:26
I want to use Elasticsearch's Client Java class within a Liferay 7 SP4 FP30 module, so I wrote this build.gradle : dependencies { compileOnly group: "com.liferay", name: "com.liferay.portal.search.elasticsearch", version: "2.1.14" compileOnly group: "com.liferay", name: "org.elasticsearch", version: "2.2.0.LIFERAY-PATCHED-1" compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.1.0" compileOnly group: "com.liferay", name: "com.liferay.osgi.util", version: "3.0.0" compileOnly group: "com.liferay", name: "com.liferay.portal.spring.extender", version: "2.0.0" compileOnly group