Liferay 6相关开发问题

发布于 2024-12-21 10:07:18 字数 407 浏览 1 评论 0原文

我正在使用 Liferay 版本 6.06。我使用 Liferay 插件 SDK 开发了一个登录 Portlet,其中 View JSP 包含一个登录屏幕。从该视图 JSP 提交凭据后,我的自定义 Portlet 类的 processAction 方法将接收该凭据。这一切都运作良好。

我有两个问题:

  1. 目前,登录 Portlet 是 Liferay 屏幕下示例类别的一部分(我想要拥有自己的屏幕,最初输入 http://localhost:8080/mycontext ,我想显示登录屏幕)。

  2. 一旦在我的自定义 Portlet 类的 processAction 方法中收到凭据,我想显示我自己的两个 portlet。

有人能告诉我如何实现这一目标吗?

I am using Liferay version 6.06. I have developed a Login Portlet using Liferay plugins SDK under which the View JSP consists of a login screen. Upon submitting credentials from this view JSP it will be received by the processAction Method of my Custom Portlet class. All this works good.

I have two questions:

  1. Currently the Login Portlet is being part of Sample Category under Liferay screen (I want to have my own screen, where initially upon entering http://localhost:8080/mycontext, I want to show that Login screen).

  2. And once the credentials are received inside the processAction method of my Custom Portlet class, I want to display my own two portlets.

Could anybody tell me how to achieve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

滥情稳全场 2024-12-28 10:07:18

除了你不需要为你的用例定制登录之外,如果你仍然需要定制登录过程,你应该:

构建一个钩子,它是一种能够与 Liferay 核心功能交互的插件。
如果您不知道,请查看[此处] http://www.liferay.com/it/documentation/liferay-portal/6.0/development/-/ai/hooks

或仅使用属性 login.events.post=my.custom.PortletAction

和把你的生意用户登录成功后的逻辑

Beside you don't need a customized login for your Usecase, in case you still need to customize the login process you should:

build a hook which is a kind of plugin able to interact with Liferay's core functionalities.
In case you don't know take a look [here] http://www.liferay.com/it/documentation/liferay-portal/6.0/development/-/ai/hooks

or just use the property login.events.post=my.custom.PortletAction

and put your business logic after successfull user login

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文