over 5 years ago
I here to set title of the view page in liferay. We can also set the title of the portlets.
We have many ways to set page title of the liferay page because liferay provide dynamic functionality.
You can add page title by using PortalUtil as below :
It sets the title of the web page , not the title of the liferay portlet.
PortalUtil.addPageTitle (String myTitle, HttpServletRequest request);
There are two approcahes to solve this :
Liferay provides an option to set the title of the web page via portlet preferences.
PortletPreferences portletSetup = PortletPreferencesFactoryUtil.getLayoutPortletSetup(layout, instanceId);
Locale locale = new Locale("en", "US"); //straight to the point
portletSetup.setValue("portlet-setup-title-" + LocaleUtil.toLanguageId(locale), title);
In your portlet controller class, you can set the title of web page to the response.
You can also add unique title per page using the control panel.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using