liferay

LifeRay creating a new type of aui validator

吃可爱长大的小学妹 提交于 2019-12-13 06:24:49
问题 I want to create a new type of aui validator. For example : <aui:input name="firstName" type="text" maxlength="40"> <aui:validator name="required" /> <aui:validator name="alpha" /> </aui:input> the alpha validator does not accept the space character, i want to use a type that accepts alpha characters plus the space character, i have already a solution using javascript to use a custom validator, but i want to define a new validator type to use like the others by invoking the validator tag e.g

Spring Portlet MVC sentRedirect and setRenderParameter

与世无争的帅哥 提交于 2019-12-13 05:39:00
问题 I am stuck with a probably simple Spring Portlet redirect and jsp render problem in Liferay. I have two Pages in Liferay page1 and page2 and one spring mvc portlet portletA with two JSPs defaultView.jsp and second.jsp . page1 and page2 both instantiate portletA. portletA loads by default the defaultView.jsp by calling the @RenderMapping() method. DefaultViewController : @RenderMapping public String renderDefaultView() { return "defaultView"; } From defaultView.jsp the liferay page2 can be

Liferay - autologin hook/portlet doesn't logout the current user

雨燕双飞 提交于 2019-12-13 05:31:29
问题 It seems Liferay's autologin hook doesn't logout the current user. So I tried to do it programmatically with the following method call: request.getSession().invalidate(); but with no success.Does anyone had the same issues with the auto-login hook ? 回答1: Hi to logout you have to invalidate the cookies and then invalidate the session see the Liferay LogoutAction for more detail https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/com/liferay/portal/action/LogoutAction.java 回答2:

Using SSO alfresco automatically logged in LIferay Portal

≡放荡痞女 提交于 2019-12-13 05:25:29
问题 how to use SSO in liferay portal if alfresco it is been integrated ? Meanwhile i have to login in liferay portal and again login in alfresco portlet and alfresco it is been integrated in liferay portal ?? Image of Alfresco_Liferay 回答1: Alfresco in the Cloud has SAML integration that can use an SSO identity provider. There is an enterprise SAML module for on-premise coming soon, or you can pay for consulting to get it earlier. Otherwise, perhaps you can do something with Alfresco External

How to get portlet context in config (Liferay)?

风格不统一 提交于 2019-12-13 05:14:23
问题 I'd like to access the Context of the portlet in config mod (in my implement of ConfigurationAction interface). I try since hours to get the same Context in my ConfigurationActionImpl.processAction(PortletConfig portletConfig, ActionRequest actionRequest, ActionResponse actionResponse) as I have in my doView(RenderRequest renderRequest, RenderResponse renderResponse) , but without any good result. In my doView() , I can access my portlet Context using getPortletContext() (same as

The import package cannot be resolved

你离开我真会死。 提交于 2019-12-13 05:02:56
问题 I have a liferay portlet. I've added some external libraries using maven. In ide no errors, it can recognize, but when deploying with ant , it says no such package and class import pack.SomeClass; The import pack cannot be resolved code: import pack.SomeClass; public class MainPortlet extends MVCPortlet { public void doView(RenderRequest renderRequest,RenderResponse renderResponse) { SomeClass a = new SomeClass(); } } 回答1: If you are using maven and you have defined your dependency with scope

Getting journal articles by category: Liferay Portlet written in Python

喜你入骨 提交于 2019-12-13 04:50:41
问题 I am trying to write a simple Liferay portlet in Python. The portlet will show a list of categories and when clicked will show a list of Web Content articles (journal articles) of a certain structure. I am able to get the list of categories but cannot find a way using the liferay api to get a list of articles by category? I have searched allover but it seems to me the method should be on this page: http://docs.liferay.com/portal/6.1/javadocs/com/liferay/portlet/journal/service

Liferay create site / page programmatically

我只是一个虾纸丫 提交于 2019-12-13 04:46:20
问题 I have been using Liferay for work for 2 weeks. I noticed that it's a bit difficult to find good documentation and tutorials. Until now I created pages from the web portal. After I create them, I drag and drop portlets. I don't really like this approach, I would prefer to use a coding approach. Is there a way to create a website or page programmatically by defining a project as I do to create portlets? Moreover, I am using Liferay with WebLogic 10.3.6. I want to know where liferay puts pages

LifeRay: When I build the war, my changes are removed

▼魔方 西西 提交于 2019-12-13 04:43:37
问题 I have setted up a liferay environament with eclipse and tomcat (first time I use any of them), And I want to make some changes, for example, I add a <p> in the end of the navigation.vm : But when I build the war, like this: My change dissapears: Any idea what I'm doing wrong? 回答1: probably you're trying to edit the portal-normal.vm under yourTheme/docroot/templates but you can't. You have to create a new folder called _diffs under yourTheme/docroot in which you copy the folders structure of

java.lang.ClassNotFoundException: com.caucho.vfs.Path

允我心安 提交于 2019-12-13 04:43:22
问题 I have created a PHP Liferay Portlet and in portlet.xml I added this class: <portlet-class>com.liferay.util.bridges.php.PHPPortlet</portlet-class> When I deploy the portlet I get this error: com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for nsFileUpload-portletnsFileUpload-portlet at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46) at com.liferay.portal.deploy.hot.PortletHotDeployListener