问题标签 [liferay-6.2]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
309 浏览

active-directory - Liferay 不对 Active Directory 用户进行身份验证

我一直在尝试使用我的 Active Directory 帐户访问 liferay,但我无法登录,因为我知道用户已成功导入,但 liferay 似乎没有导入密码。我该如何解决这个问题?

AD环境:Windows Server 2012 Liferay 6.2

0 投票
1 回答
291 浏览

eclipse - Lombok 用 ant 编译错误?(liferay6.2)

在 liferay6.2 portlet 应用程序中使用 lombok.jar。Kepler Eclipse IDE 识别 lombok.jar。但是当我用 apache-ant-1.9.6 编译时,我得到了错误。

0 投票
1 回答
507 浏览

database - 跨数据库的 liferay id 生成器

我的任务是将用户从客户数据库迁移到 liferay 门户。

我已经设法找到我需要填充数据的所有地方,以使用户正常工作(USER_、USERS_GROUPS、CONTACT_、LAYOUTSET、EXPANDOVALUE)。

我遇到的唯一问题是ID。Liferay 不使用序列来生成它们(至少我还没有找到),但似乎是从代码中生成它们的。更令人担忧的是,看起来所有 ID(UserID、GroupId、RowID 等)不仅在表范围内,而且在整个数据库范围内都必须是唯一的。

我需要找到一种方法来获取数据库中最后使用的 ID 以及设置我的脚本使用的最后一个 ID 的方法,这样 Liferay 就不会再次使用它。

我无法访问应用程序服务器,只能访问数据库,这就是我无法使用 API 的原因......

0 投票
2 回答
672 浏览

liferay - 在 Liferay 结构/模板中使用外部链接

目前我正在 Liferay 6.2 中开发结构/模板组合,我发现了一个问题。

在我的结构中,用户可以键入外部站点的 url(例如“www.google.com”):

在我的模板中,我想要一个指向该页面的链接,但当前代码只是将结构的字符串值附加到我网站的 BaseURL。像 www.company-url.de/web/www.google.de

(我不能提供正确的网址,因为我不确定是否允许)

有没有办法告诉 Liferay 使用字符串作为独立的 url,而不是附加它?

非常感谢你的帮助。

0 投票
0 回答
56 浏览

java - Liferay 自定义属性仅在登录后为空

我在 Liferay 6.2 CE GA1 安装中创建了两个链接到用户资源的自定义属性。在我的本地环境中,当我读取这些属性时我没有问题,但在生产环境中,每当我登录时,当我尝试检索这些字段时,我都会出现空白。

有什么建议么?

0 投票
0 回答
1114 浏览

liferay - Liferay LDAP 映射

我遇到了一个问题,我无法将 LDAP 属性映射到 LR 用户属性,这些属性在控制面板中不可用(例如“评论”)。

例如,如果我将 LDAP 属性“部门”映射到 LR 用户模型属性 jobTitle,它可以工作

现在,如果我想将相同的属性读取到无法通过 CMS 配置的字段,则它不起作用(这意味着永远不会分配该值):

我也尝试过自定义映射也不起作用。创建了一个名为 userDepartment 的自定义属性到 User 对象。以及portal-ext.properties中对应的映射:

所以简而言之 - 我能够将来自 LDAP 的任何字段映射到控制面板中显示的 LR 用户属性(屏幕名称、名字、姓氏、密码、职务、邮件等),但不能映射到其他 LR 用户属性(评论、自定义属性)。

旁注:该问题与未读取(更新)的 portal-ext.properties 无关。在每个测试场景中,之前的 LDAP 设置都已被删除,因此它们将再次从 portal-ext.properties 中读取。属性正确的事实已从门户首选项表中得到验证。

Liferay 版本 6.2.10 EE

0 投票
1 回答
3560 浏览

java - 为 LFR_SESSION_STATE_% 设置会话 cookie 安全和 httpOnly

环境 :

  1. Liferay 6.2 与 Jboss

我们正在尝试实现 httponly 和安全。

为此,我们对圆顶进行了一些更改,如下所示

在 Portal-ext.properties 中添加:

在 ROOT.war/WEB-INF/web.xml 中添加了以下属性

我可以看到所有会话 cookie 都是 httponly 除了以LFR_SESSION_STATE_ 开头的

谁能建议我们如何处理这个问题。

0 投票
1 回答
53 浏览

liferay - 没有响应的主题

我正在将我的应用程序迁移到 Liferayv 6.2,但我想让主题无响应。我怎样才能做到这一点?

0 投票
1 回答
1279 浏览

encoding - 为什么 UTF-8 编码值(在 language.properties 中)在 Liferay 6.2 中被误解?

在 Liferay Portal 6.2 中,我创建了一个包含language.properties文件的 portlet。portlet.xml像这样:

内容language.properties如下:

view.jsp里面有这样的东西:

视图.jsp

为什么没有加载utf字符。(????????????)但在liferay 6.0.6中一切都是真的。

有什么建议么?

0 投票
1 回答
326 浏览

java - Portlet Configuration window does not open

Following dependencies issues into a MVC spring Liferay portlet, I tried to rebuild it from scratch.

Most of it is now OK but the portlet preferences. It used to work on the former portlet but does not on the built from scratch portlet. I have correctly set Liferay-portlet.xml:

This part works as the "configuration" option is now available when I click the right top corner of the portlet.

Portlet.xml includes :

I also copied the former jsp that was working correctly into the new project. It does load properly. When I click "configuration", all of the System.out.println are correctly displayed into the console output), but the setup window does not appear and thus the html elements are not displayed. All I get is the portlet page attempting to load a window but it never opens.

Are there any other files included that I might not have re-setupped properly?