liferay

Unable to publish Liferay Pages to Remote Live Boxes

时光总嘲笑我的痴心妄想 提交于 2020-04-11 19:55:53
问题 Iam having a Author(with 1 database) and Remote Live(with 1 database) setup in Liferay 7.1. I was publishing all public pages one by one to remote live boxes which was successful. suddenly I started getting the below error, The publication process did not start due to validation errors. The model.resource.com.liferay.site.model.adapter.StagedGroup <?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US" default-locale="en_US"><Name language-id="en_US">Guest</Name></root> could

javax.mail.MessagingException: Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 25;

落爺英雄遲暮 提交于 2020-03-25 18:42:09
问题 public void emailTest() { Properties properties=new Properties(); properties.put("mail.smtp.host", "email-smtp.us-east-1.amazonaws.com"); properties.put("mail.smtp.port", 587); properties.put("mail.debug", "true"); try{ Session session=Session.getInstance(properties); Message msg=new MimeMessage(session); msg.setFrom(new InternetAddress("test@gmail.com", "Test")); msg.setRecipient(RecipientType.TO, new InternetAddress("test@gmail.com", "Test")); msg.setSubject("Test Subject"); msg.setText(

javax.mail.MessagingException: Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 25;

℡╲_俬逩灬. 提交于 2020-03-25 18:42:02
问题 public void emailTest() { Properties properties=new Properties(); properties.put("mail.smtp.host", "email-smtp.us-east-1.amazonaws.com"); properties.put("mail.smtp.port", 587); properties.put("mail.debug", "true"); try{ Session session=Session.getInstance(properties); Message msg=new MimeMessage(session); msg.setFrom(new InternetAddress("test@gmail.com", "Test")); msg.setRecipient(RecipientType.TO, new InternetAddress("test@gmail.com", "Test")); msg.setSubject("Test Subject"); msg.setText(

Liferay开发学习Part6:Service Builder

ぐ巨炮叔叔 提交于 2020-03-16 17:59:12
某厂面试归来,发现自己落伍了!>>> 一.什么是Service Builder? Service Builder是liferay IDE提供的一种代码生成方案,开发人员只需编辑一个数据库实体的描述文件(XML),即可根据XML文件生成Spring层代码、Hibernate层代码、SQL、SQL索引创建文件、Spring和Hibernate的配置文件等,可以提高开发效率 二.使用Service Builder 1.service.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd"> <service-builder package-path="com.sample.portlet.liferay"> <author>laiwanshan</author> <namespace>Liferay</namespace> <entity name="Book" local-service="true" remote-service="true"> <!-- PK fields --

Liferay: Set title name for view pages

a 夏天 提交于 2020-02-25 08:35:21
问题 I have a portlet in which i want to set title as the different page loads. The solution i found is using PortalUtil.addPageTitle (String myTitle, HttpServletRequest request) as mentioned here. But i don't know here and how to use it. Any idea? Any alternative will also work as long as it is not javascript approach. 回答1: PortalUtil.addPageTitle (String myTitle, HttpServletRequest request) sets the title of the page (htmlTitle). not the title of the portlet. There are two approcahes to solve

Liferay: Set title name for view pages

自闭症网瘾萝莉.ら 提交于 2020-02-25 08:35:11
问题 I have a portlet in which i want to set title as the different page loads. The solution i found is using PortalUtil.addPageTitle (String myTitle, HttpServletRequest request) as mentioned here. But i don't know here and how to use it. Any idea? Any alternative will also work as long as it is not javascript approach. 回答1: PortalUtil.addPageTitle (String myTitle, HttpServletRequest request) sets the title of the page (htmlTitle). not the title of the portlet. There are two approcahes to solve

how to download document using download url in liferay?

和自甴很熟 提交于 2020-02-04 11:00:53
问题 I have developed a web service using service builder portlet, which will return a list of documents from Liferay (6.2 EE). I am returning the default document download URL like the following: { ... "downloadUrl": "http://localhost:8080/documents/10181/12306/folder1_doc1/98188996-af04-41c8-b0b6-10b83bf17ee4" } When the client calls the web-service he is passing user name and password in header with basic authentication. But when the client is trying to call the document URL with the same basic

How to create a download button for multiple files using Liferay and JavaScript?

人盡茶涼 提交于 2020-01-28 10:23:50
问题 I am trying to make a button when clicking, it downloads the files in a zip file. I tried to load the files into the Zip from given url. I am using Liferay 6.1 . Is the script declaration in the JSP file correct? I have already specified jszip.js in liferay-portlet.xml. <footer-portlet-javascript>/js/jszip.js</footer-portlet-javascript> Do I have to use the Liferay AUI Taglib tag or a simple javaScript tag should do the work? <aui:script></aui:script> or <script type="text/javascript"><

How to create a download button for multiple files using Liferay and JavaScript?

北城以北 提交于 2020-01-28 10:22:43
问题 I am trying to make a button when clicking, it downloads the files in a zip file. I tried to load the files into the Zip from given url. I am using Liferay 6.1 . Is the script declaration in the JSP file correct? I have already specified jszip.js in liferay-portlet.xml. <footer-portlet-javascript>/js/jszip.js</footer-portlet-javascript> Do I have to use the Liferay AUI Taglib tag or a simple javaScript tag should do the work? <aui:script></aui:script> or <script type="text/javascript"><

Mapping LDAP attribute to Liferay user display language

≡放荡痞女 提交于 2020-01-25 10:26:06
问题 We are using Liferay 6.2 GA4, which allows you to map only few basic attributes for LDAP user import: screenName, password, emailAddress, firstName, lastName, jobTitle and group . If you want to map some custom fields you have to use custom mapping. Both cases are working fine but what we really want is to map LDAP attribute preferredLanguage to user languageId so the user language in Liferay is set based on LDAP value. What we have tried: Map preferredLanguage to languageId in standard ldap