掲示板
LiferayFacesContext in LiferayFacesBridge for Liferay 7
7年前 に Ralph Koster によって更新されました。
LiferayFacesContext in LiferayFacesBridge for Liferay 7
New Member 投稿: 22 参加年月日: 13/11/08 最新の投稿
Hi everyone,
i've got a question about Liferay 7 and LiferayFacesBridge. In earlier versions of Liferay and FacesBridge I had the possibility to get current user, themeDisplay etc. through LiferayFacesContext.
E.g
Right now, I'm updating my JSF project for Liferay 7 and I saw that LiferayFacesContext class doesn't exist anymore.
So how can I get those objects with new version of LiferayFacesBridge?
Thanks in advance
Ralph
i've got a question about Liferay 7 and LiferayFacesBridge. In earlier versions of Liferay and FacesBridge I had the possibility to get current user, themeDisplay etc. through LiferayFacesContext.
E.g
LiferayFacesContext.getInstance().getThemeDisplay();
LiferayFacesContext.getInstance().getUser();
Right now, I'm updating my JSF project for Liferay 7 and I saw that LiferayFacesContext class doesn't exist anymore.
So how can I get those objects with new version of LiferayFacesBridge?
Thanks in advance
Ralph
7年前 に Vernon Singleton によって更新されました。
RE: LiferayFacesContext in LiferayFacesBridge for Liferay 7
Expert 投稿: 315 参加年月日: 13/01/14 最新の投稿
Hi Ralph,
Make sure you are using the dependencies given when you use the archetype portlet here.
That is very perceptive, and this is a great question that I am excited to answer. I think many other folks will have a similar question.
You should be able to use the liferay-faces-portal jar, and its new LiferayPortletHelperUtil object ...
for the ThemeDisplay
and the User.
Hope that helps,
Vernon
Ralph Koster:
i've got a question about Liferay 7 and LiferayFacesBridge. In earlier versions of Liferay and FacesBridge
Make sure you are using the dependencies given when you use the archetype portlet here.
Ralph Koster:
I had the possibility to get current user, themeDisplay etc. through LiferayFacesContext.
E.gLiferayFacesContext.getInstance().getThemeDisplay(); LiferayFacesContext.getInstance().getUser();
Right now, I'm updating my JSF project for Liferay 7 and I saw that LiferayFacesContext class doesn't exist anymore.
That is very perceptive, and this is a great question that I am excited to answer. I think many other folks will have a similar question.
Ralph Koster:
So how can I get those objects with new version of LiferayFacesBridge?
You should be able to use the liferay-faces-portal jar, and its new LiferayPortletHelperUtil object ...
for the ThemeDisplay
and the User.
Hope that helps,
Vernon
7年前 に Ralph Koster によって更新されました。
RE: LiferayFacesContext in LiferayFacesBridge for Liferay 7
New Member 投稿: 22 参加年月日: 13/11/08 最新の投稿
Hi Vernon,
thanks for your answer, that helped me a lot.
Cheers
Ralph
thanks for your answer, that helped me a lot.
Cheers
Ralph