Liferay 6相关开发问题
我正在使用 Liferay 版本 6.06。我使用 Liferay 插件 SDK 开发了一个登录 Portlet,其中 View JSP 包含一个登录屏幕。从该视图 JSP 提交凭据后,我的自定义 Portlet 类的 processAction 方法将接收该凭据。这一切都运作良好。
我有两个问题:
目前,登录 Portlet 是 Liferay 屏幕下示例类别的一部分(我想要拥有自己的屏幕,最初输入
http://localhost:8080/mycontext
,我想显示登录屏幕)。一旦在我的自定义 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:
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).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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除了你不需要为你的用例定制登录之外,如果你仍然需要定制登录过程,你应该:
构建一个钩子,它是一种能够与 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